void Awake() { if (_instance == null) { _instance = this; } }
public void StopAndRemakeOrder() { NextCommands.Clear(); CurrentlyExecutedCommand.StopExecution(); CurrentlyExecutedCommand = null; Order_Manager.InstructNavigator(this); }
public ActionResult Edit(int id, Order_Manager o_m) { try { // TODO: Add update logic here using (DBM db = new DBM()) { db.Entry(o_m).State = EntityState.Modified; db.SaveChanges(); } return(RedirectToAction("Index")); } catch { return(View()); } }