public ActionResult Edit([Bind(Include = "Class, Selected")] EditClassViewModel vm) { if (ModelState.IsValid) { repo.EditClass(vm); return(RedirectToAction("Index")); } return(View(vm)); }
public ActionResult Edit([Bind(Include = "Class, Selected")] EditClassViewModel vm) { if (ModelState.IsValid) { repo.EditClass(vm); return(RedirectToAction("Index")); } return(View(vm)); }