public ActionResult DoctorProfile(Doctors aDoctor)
        {
            if (User.IsInRole("Doctor"))
            {
                if (aDoctor.PhoneNo == null)
                {
                    aDoctor.PhoneNo = "";
                }
                if (aDoctor.ImagePath == null)
                {
                    aDoctor.ImagePath = "";
                }
                else
                {
                    aDoctor.ImagePath = DoctorImage(aDoctor.ImageFile);
                }
                string message = aDoctorManager.EditDoctorProfile(aDoctor);
                if (message == "Success")
                {
                    ViewBag.Message = "Doctor info updated successfully";
                }
                else
                {
                    ViewBag.ErrorMessage = message;
                }
            }
            List <DoctorsSpecialities> doctorsSpecialities = aDoctorManager.GetSpecialities();

            ViewBag.GetSpecialities = doctorsSpecialities;
            aDoctor = aDoctorManager.GetDoctorInfo(GetDoctorData().Id);
            ViewBag.GetDoctorInfo = aDoctor;
            ViewBag.GetName       = GetDoctorData().Name;
            return(View());
        }