예제 #1
0
 public ActionResult createTerm(CreateEditTermViewModel input)
 {
     TryUpdateModel(input);
     if (!Service.CreateTerm(input.Creating))
     {
         CreateEditTermViewModel model = new CreateEditTermViewModel();
         return(View(model));
     }
     else
     {
         return(RedirectToAction("Terms"));//Default valud here now
     }
 }