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