Пример #1
0
        public async Task <IActionResult> Login(LoginRequest request)
        {
            LoginResponse response = await _authService.LoginAsync(request);

            if (response.IsValid())
            {
                return(Ok(response));
            }

            return(BadRequest(response.GetErrors()));
        }