private void Awake() { Instance = this; levelBL = new LevelBL(); scoreboardBL = new ScoreboardBL(); GetRequiredComponents(); Translate(); BindEventListeners(); }
public ActionResult Edit(level ob) { if (ModelState.IsValid) { LevelBL.Update(ob); return(RedirectToAction("level")); } else { return(View()); } }
public ViewResult Edit(int id) { var ob = LevelBL.GetById(id); return(View(ob)); }
public ActionResult level() { return(View(LevelBL.GetAll())); }