Beispiel #1
0
        //GetById
        public BudgetDTO GetBudgetById(int id)
        {
            var dbBudget = _repo.GetBudgetById(id);

            return(new BudgetDTO
            {
                Id = dbBudget.Id,
                Name = dbBudget.Name,
                Amount = dbBudget.Amount,
                Current = dbBudget.Current
            });
        }