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