Пример #1
0
 public ActionResult Create([Bind(Include = "ClassID, ClassName")] Class _class)
 {
     if (ModelState.IsValid)
     {
         repo.AddClass(_class);
         return(RedirectToAction("Index"));
     }
     return(View());
 }