コード例 #1
0
        public ActionResult CreateDoctorProfile()
        {
            DoctorInsertModel model = new DoctorInsertModel();

            model.DoctorTypeList = _RS.GetDoctorTypes().ToList();
            return(View(model));
        }
コード例 #2
0
        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));
        }