Пример #1
0
 public ExpensesDto ConvertExpensesToDto(Expenses exp)
 {
     return(new ExpensesDto(exp.ExpensesId, exp.Expenditure, exp.Comment, exp.СostsDate, exp.ExpensesType, exp.CurrencyType));
 }
Пример #2
0
 public void AddExpensesToDb(Expenses newExpenses)
 {
     context.Expenses.Add(newExpenses);
     context.SaveChanges();
 }