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