public ActionResult ManageAccount(DoctorModel doctor)
        {
            Admin_Api adminApi = new Admin_Api();
            var       model    = adminApi.UpdateDoctor(doctor);

            return(View("~/Views/Doctor/ViewAccountDetails.cshtml", model));
        }
        public ActionResult ManageDoctors(DoctorModel doctorUpdates)
        {
            if (Convert.ToString(Session["key"]) != "admin")
            {
                return(RedirectToAction("Login", "Home"));
            }

            Admin_Api adminApi = new Admin_Api();

            var model = adminApi.UpdateDoctor(doctorUpdates);

            if (model != null)
            {
                return(View("~/Views/Administrator/AdminViewDoctors.cshtml", model));
            }
            //ErrorModel.ErrorMessage = "Unable to fetch patient Details Please Again later";
            return(View("~/Views/Error.cshtml"));
        }