public bool AddExpense([FromForm] BusinessExpenses expense) { if (ebayDBRecords.AddExpense(expense)) { return(true); } return(false); }
// Business Expenses public bool AddExpense(BusinessExpenses expense) { if (expense != null) { db.BusinessExpenses.Add(expense); db.SaveChanges(); return(true); } return(false); }