public JsonResult SpecializationList()
        {
            var dbc        = new DbConnectivityModel();
            var SpeciaList = dbc.ListOutSpecialization();

            return(Json(SpeciaList, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult SearchResult()
        {
            var dbc         = new DbConnectivityModel();
            var searchModel = new DoctorsProfileModel
            {
                CityName           = dbc.ListOutCities(),
                SpecializationList = dbc.ListOutSpecialization()
            };

            return(View(searchModel));
        }/*Retrieves the search result*/
Exemple #3
0
        public ActionResult SearchLayout()
        {
            var dbc         = new DbConnectivityModel();
            var searchModel = new SearchFilterModels
            {
                CityName           = dbc.ListOutCities(),
                SpecializationList = dbc.ListOutSpecialization()
            };

            //ViewBag.CityList = dbc.ListOutCities();
            //ViewBag.SpecializationList = dbc.ListOutSpecialization();
            return(View(searchModel));
        }
 // GET: Profile
 public ActionResult SearchLayout()
 {
     if (Session["UserId"] != null && Session["Role"].ToString() == PatientRole)
     {
         var dbc         = new DbConnectivityModel();
         var searchModel = new SearchFilterModels
         {
             CityName           = dbc.ListOutCities(),
             SpecializationList = dbc.ListOutSpecialization()
         };
         return(View(searchModel));
     }
     else
     {
         return(RedirectToAction("Login", "Home"));
     }
 }
        // GET: DoctorsProfile
        public ActionResult SearchLayout()
        {
            //if (Session["EmailId"] != null)
            // {
            var dbc         = new DbConnectivityModel();
            var searchModel = new SearchFilterModels
            {
                CityName           = dbc.ListOutCities(),
                SpecializationList = dbc.ListOutSpecialization()
            };

            return(View(searchModel));
            //}
            // else
            //{
            //return RedirectToAction("Login", "Home");
            // }
        }