public AuthController(IConfiguration config, IAuth <UserVM> auth, IManagerUser managerUser) { _config = config; _auth = auth; _managerUser = managerUser; }
public bool UpdateManagerUser(IManagerUser managerUser) { var managerRepUser = _userRepository.GetManagerById(managerUser.UserId); managerRepUser.Login = managerUser.Login; managerRepUser.Password = managerUser.Password; managerRepUser.EmployeeId = managerUser.EmployeeId; managerRepUser.DepartmentId = managerRepUser.DepartmentId; return _userRepository.UpdateManager(managerRepUser); }