コード例 #1
0
 public ActionResult createSwimTime(CreateEditSwimTimeRulesViewModel input)
 {
     TryUpdateModel(input);
     if (!Service.CreateSwimTime(input.Creating))
     {
         CreateEditSwimTimeRulesViewModel model = new CreateEditSwimTimeRulesViewModel(Service.ListAllCourses(), input.Creating);
         return(View(model));
     }
     else
     {
         return(RedirectToAction("SwimTime"));//Default valud here now
     }
 }