Beispiel #1
0
        public async Task <ActionResult <BalanceDto> > GetAsync()
        {
            var userId = HttpContext.User.Identity.Name;

            if (string.IsNullOrEmpty(userId))
            {
                return(NotFound("user not found"));
            }
            return(await _service.GetDtoAsync <BalanceDto>(x => x.UserId == userId));
        }