public IActionResult Login([FromBody] LoginCommand command) { ActionResponse actionResponse = new ActionResponse(); var user = userService.GetUser(command.Email); if (HashHelper.Verify(command.Password, user.Password)) { actionResponse.Data = ProcessLogin(user); } else { actionResponse.AddInvalidErr("Username or password"); } return(actionResponse.ToIActionResult()); }