Beispiel #1
0
 public bool InsertBillInfo(BillInfo billInfo)
 {
     try
     {
         Db.BillInfo.Add(billInfo);
         Db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool InsertAccount(Account account)
 {
     try
     {
         Db.Account.Add(account);
         Db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Beispiel #3
0
 public bool InsertCategory(ProductCategory productCategory)
 {
     try
     {
         Db.ProductCategory.Add(productCategory);
         Db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Beispiel #4
0
 public bool InsertProduct(Product product)
 {
     try
     {
         Db.Product.Add(product);
         Db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Beispiel #5
0
 public bool InsertBill(Bill bill)
 {
     try
     {
         Db.Bill.Add(bill);
         Db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }