public ActionResult DeleteConfirmed(int id) { Staff_Type staff_Type = db.Staff_Type.Find(id); db.Staff_Type.Remove(staff_Type); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Name")] Staff_Type staff_Type) { if (ModelState.IsValid) { db.Entry(staff_Type).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(staff_Type)); }
public ActionResult Create([Bind(Include = "Id,Name")] Staff_Type staff_Type) { if (ModelState.IsValid) { db.Staff_Type.Add(staff_Type); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(staff_Type)); }
// GET: Staff_Type/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Staff_Type staff_Type = db.Staff_Type.Find(id); if (staff_Type == null) { return(HttpNotFound()); } return(View(staff_Type)); }
public KitchenBar(Staff_Type type) { InitializeComponent(); recallpanel.Hide(); service = new KitchenBarService(type); if (type == Staff_Type.Bartender) { this.Text = "Chapeau Bar"; } pageNumber = 1; StartNew(); }
public kichenBarDAO(Staff_Type type) { staffType = type; }
public KitchenBarService(Staff_Type staff_Type) { kitchenBar_db = new kichenBarDAO(staff_Type); }