//update
 public static void Update(CurrentEmployee currentEmployee)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.Entry(currentEmployee).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Esempio n. 2
0
 public static void Update(InventDose inventDose)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.Entry(inventDose).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Esempio n. 3
0
 //update
 public static void Update(Tables tables)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.Entry(tables).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
 //update
 public static void Update(EmployeesTypes employeesTypes)
 {
     using (restaurantEntities db = new restaurantEntities())
     {
         db.Entry(employeesTypes).State = EntityState.Modified;
         db.SaveChanges();
     }
 }