public async Task <HttpResponseMessage> Authorize([FromBody] AccountRequest request) { try { var account = _swap.Authorize(request.Email, request.Password); return(await Response(new AccountResponse { Id = account.Id, Email = account.Email, Role = account.Role, Project = account.Project, })); } catch (Exception ex) { return(await ExResponse(ex)); } }