public int UpdateExpense(int ID, POS.Models.Expenses ExpensesObject)
        {
            var expense = _appDbContext.Expenses.Where(c => c.ExpId == ID).SingleOrDefault();

            if (expense == null)
            {
                return(0);
            }
            else
            {
                expense.Date    = ExpensesObject.Date;
                expense.Payment = ExpensesObject.Payment;
                _appDbContext.SaveChanges();
                return(1);
            }
            //throw new NotImplementedException();
        }
 public void AddExpense(POS.Models.Expenses expensesObject)
 {
     _appDbContext.Expenses.Add(expensesObject);
     _appDbContext.SaveChanges();
     //throw new NotImplementedException();
 }