Example #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
     }
 }
Example #2
0
        public ActionResult createSwimTime()
        {
            CreateEditSwimTimeRulesViewModel model = new CreateEditSwimTimeRulesViewModel(Service.ListAllCourses());

            return(View(model));
        }