コード例 #1
0
 public ActionResult Create(StudentViewModel studentViewModel)
 {
     if (ModelState.IsValid)
     {
         _app.Add(studentViewModel.MapTo <Student>());
         return(RedirectToAction("Index"));
     }
     return(View());
 }