public async Task <ActionResult> Login([FromServices] IJwtAuthService authService, [FromBody] LoginModel loginModel) { var result = await authService.SignInAsync(loginModel.Email, loginModel.Password); if (!result.Sucess) { return(BadRequest(result.Errors)); } return(Ok(result.Value)); }