User NFCCode is rögzítésre kerüljön

This commit is contained in:
2025-04-15 19:42:39 +02:00
parent c51ee750f9
commit 4dbda1aac3
3 changed files with 36 additions and 1 deletions
@@ -1,4 +1,5 @@
using WorkFlowCheck.Common.DTO;
using Microsoft.AspNetCore.Mvc;
using WorkFlowCheck.Common.DTO;
namespace WorkFlowCheck.BL.Services.Interfaces
@@ -31,5 +32,7 @@ namespace WorkFlowCheck.BL.Services.Interfaces
Task<bool> DeviceMessageSend(DeviceMessageDTO deviceMessageDTO);
Task<List<DeviceMessageDTO>> DeviceMessageReadUnreaded(string deviceId);
}
}
@@ -394,6 +394,8 @@ namespace WorkFlowCheck.BL.Services
user.Email = userDTO.Email;
user.Active = userDTO.Active;
user.NFCActive = userDTO.NFCActive;
user.NFCCode = userDTO.NFCCode;
await _dbContext.SaveChangesAsync();
retVal = _mapper.Map<UserDTO>(user);