Esempio n. 1
0
        //Get
        public IEnumerable <BudgetDTO> ListBudgets(string username)
        {
            var budgets = (from b in _repo.List()
                           where b.AppUser.UserName == username
                           select new BudgetDTO
            {
                Id = b.Id,
                Name = b.Name,
                Amount = b.Amount,
                Current = b.Current
            }).ToList();

            return(budgets);
        }