public async Task <Result> Login([FromBody] LoginViewModel model) { var loginResult = await _signInManager.Login(model.Email, model.Password, model.RememberMe, lockoutOnFailure : false); if (loginResult != LoginResultEnum.Success) { var message = LoginResult.GetLoginResultMessage(loginResult); return(Result.FailResult(message)); } return(Result.SuccessResult); }