public ActionResult Create()
 {
     if (Session["LogedUserID"] != null)
     {
         try
         {
             var __existingdocspeList = db.SP_SelectDoctorSpeciality();
             var doctors = db.Doctors
                           .Where(a => a.active == true).ToList();
             ViewBag.Doctors = doctors;
             var speciality = db.Speciallities
                              .Where(a => a.active == true).ToList();
             ViewBag.Speciality = speciality;
             return(View(__existingdocspeList));
         }
         catch (Exception ex)
         {
             ViewBag.errorMessage = "Error occurred while loading data.";
             return(View());
         }
     }
     else
     {
         return(RedirectToAction("../Login/Index"));
     }
 }