public ActionResult CreateReferral(int Id) { Doctor ToDoctor; ToDoctor = Service.FindById(Id); List <DoctorReferralVM> MyEnumerable = new List <DoctorReferralVM>(); DoctorReferralVM ReferralData; ReferralData = new DoctorReferralVM(); ReferralData.DoctorModel = ToDoctor; ReferralData.ReasonModel = ReasonRepository.GetAll(); MyEnumerable.Add(ReferralData); return(View(MyEnumerable)); }
public Doctor FindById(int id) { return(doctorService.FindById(id)); }