public ActionResult PickedBottom(Guid id) { var order = TempData["order"] as OrderViewModel; order.bottom = BottomManager.GetAllBottoms().Where(x => x.Id == id).FirstOrDefault(); TempData["order"] = order; return(RedirectToAction("SaucePicker")); }
private void Awake() { if (instance == null) { DontDestroyOnLoad(gameObject); instance = this; } else if (instance != null) { Destroy(gameObject); } msgids = new ushort[] { (ushort )UIEvent.HideBottomPart, (ushort )UIEvent.ShowBottomPart }; RegistSelf(this, msgids); }
public ActionResult BottomPicker() { var models = BottomManager.GetAllBottoms(); return(View(models)); }
public ActionResult AddBottom(BottomModel model) { BottomManager.AddBottom(model); return(RedirectToAction("ManageBottoms")); }
public ActionResult ManageBottoms() { List <BottomModel> models = BottomManager.GetAllBottoms(); return(View(models)); }
public ActionResult BottomDelete(BottomModel model) { BottomManager.RemoveBottom(model); return(RedirectToAction("ManageBottoms")); }