public async Task <IActionResult> GetMyAccount() { GenericUserContract user = await _accountFacade.GetMyAccount(IdentityUser); var response = LinqExtensions.CreateSuccessResponse(user); return(Ok(response)); }
public async Task <IActionResult> GetMyAccount([FromQuery] PagingParameters paging) { Results <List <PandaAccountReadContract> > result = await _accountFacade.GetMyAccount(IdentityUser, paging); if (result.IsError()) { return(StatusCode(500, result)); } return(Ok(result)); }