コード例 #1
0
        public async Task <ActionResult> MyAccount()
        {
            var result = await _service.GetByIdAsync(User.GetUserId());

            if (!result.Sucess)
            {
                return(NotFound(result.Errors));
            }

            return(Ok(Map <AdvertiserDetailedModel>(result.Value)));
        }