示例#1
0
        /// <summary>
        /// This Action calls for the button which can delete a Doctor
        /// </summary>
        /// <returns>The form view which contains list of Doctors after deleting a paricular Doctor</returns>
        public ActionResult RemoveDoctorUser(int id)
        {
            if (Session["userId"] == null)
            {
                return(Redirect("~"));
            }
            DoctorRemove Doctor = new DoctorRemove();

            Doctor.DeleteDoctor(id);
            return(RedirectToAction("Doctors"));
        }