示例#1
0
        public async Task <IActionResult> GetMyAccount()
        {
            GenericUserContract user = await _accountFacade.GetMyAccount(IdentityUser);

            var response = LinqExtensions.CreateSuccessResponse(user);

            return(Ok(response));
        }
示例#2
0
        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));
        }