Example #1
0
        public async Task <ActionResult <List <BalanceViewModel> > > AddBalancesTemplate()
        {
            UserViewModel user = await GetCurrentUserAsync();

            if (user == null)
            {
                return(HandleUserNotFoundResult());
            }

            List <BalanceViewModel> result = await _balanceService.AddEffectiveBalancesTemplate(user.Id);

            return(HandleResult(result));
        }