public void InsertRecord(SaleReceipt sale) { using (var db = new MotorcycleShopsEntities()) { db.SaleReceipts.Add(sale); db.SaveChanges(); } }
public long Insert(BillEmployee billEmp) { long id = 1; using (var db = new MotorcycleShopsEntities()) { db.BillEmployees.Add(billEmp); db.SaveChanges(); } return(id); }
public long Insert(BillDetail bd) { long id = 1; using (var db = new MotorcycleShopsEntities()) { db.BillDetails.Add(bd); db.SaveChanges(); id = bd.ID; } return(id); }
public long Insert(MaintenanceBill bill) { long id = 1; using (var db = new MotorcycleShopsEntities()) { db.MaintenanceBills.Add(bill); db.SaveChanges(); id = bill.ID; } return(id); }