Ejemplo n.º 1
0
 public ExpensesDto ConvertExpensesToDto(Expenses exp)
 {
     return(new ExpensesDto(exp.ExpensesId, exp.Expenditure, exp.Comment, exp.СostsDate, exp.ExpensesType, exp.CurrencyType));
 }
Ejemplo n.º 2
0
 public void AddExpensesToDb(Expenses newExpenses)
 {
     context.Expenses.Add(newExpenses);
     context.SaveChanges();
 }