Пример #1
0
        public async Task <UserModel> GetCurrentUser()
        {
            var user = await safeAccountService.GetCurrentUser(HttpContext);

            if (user == null)
            {
                NotFound();
            }

            return(user);
        }
 public async Task <UserModel> GetCurrentUser(HttpContext httpContext)
 {
     return(await safeAccountService.GetCurrentUser(httpContext));
 }