Exemplo n.º 1
0
 public ActionResult Index(DoctorRegistration req)
 {
     if (!ModelState.IsValid)
     {
         req.states          = _commonServices.GetStates().ToList();
         req.specializations = _commonServices.GetSpecializations().ToList();
         req.cities          = _commonServices.GetCities(req.State).ToList();
         return(View(req));
     }
     else
     {
         return(RedirectToAction("Index", "Dashboard", new { }));
     }
 }