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