Ejemplo n.º 1
0
 public ActionResult editSwimTime(CreateEditSwimTimeRulesViewModel input)
 {
     TryUpdateModel(input);
     if (!Service.EditSwimTime(input.Creating))
     {
         CreateEditSwimTimeRulesViewModel model = new CreateEditSwimTimeRulesViewModel(Service.ListAllCourses(), input.Creating);
         return(View(model));
     }
     else
     {
         return(RedirectToAction("SwimTime"));//Default valud here now
     }
 }