public bool InsertBillInfo(BillInfo billInfo) { try { Db.BillInfo.Add(billInfo); Db.SaveChanges(); return(true); } catch { return(false); } }
public bool InsertAccount(Account account) { try { Db.Account.Add(account); Db.SaveChanges(); return(true); } catch { return(false); } }
public bool InsertCategory(ProductCategory productCategory) { try { Db.ProductCategory.Add(productCategory); Db.SaveChanges(); return(true); } catch { return(false); } }
public bool InsertProduct(Product product) { try { Db.Product.Add(product); Db.SaveChanges(); return(true); } catch { return(false); } }
public bool InsertBill(Bill bill) { try { Db.Bill.Add(bill); Db.SaveChanges(); return(true); } catch { return(false); } }