예제 #1
0
 public ActionResult CreateField(CreateFieldViewModel model)
 {
     if (ModelState.IsValid)
     {
         CollectionService.AddField(model);
         return(RedirectToAction($"Collection/{model.CollectionId}"));
     }
     else
     {
         return(View(model));
     }
 }