Example #1
0
        public ActionResult ChangeDoctor(Doctor changeDoctor)
        {
            bool result = DoctorManager.ChangeDoctor(changeDoctor);

            if (result == false)
            {
                ViewBag.message = "Error: Doctor not found";
                return(View(changeDoctor));
            }
            ViewBag.message = "Doctor changed";
            Doctor[] doctors = DoctorManager.GetAllDoctors();
            return(View("List", doctors));
        }