public ActionResult CreateDoctorProfile() { DoctorInsertModel model = new DoctorInsertModel(); model.DoctorTypeList = _RS.GetDoctorTypes().ToList(); return(View(model)); }
public ActionResult CreateDoctorProfile(DoctorInsertModel model, HttpPostedFileBase File) { model.DoctorTypeList = _RS.GetDoctorTypes().ToList(); if (!ModelState.IsValid) { TempData["Message"] = "Verification failed"; TempData["IsError"] = "true"; } TempData["Message"] = "Verification failed"; TempData["IsError"] = "true"; return(View(model)); }