// GET: Doctors/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } IBL bL = new BlClass(); Doctor doctor = bL.GetDoctor(id); if (doctor == null) { return(HttpNotFound()); } return(View(new DoctorVM(doctor))); }
public static DoctorVM GetDoctorForPrescription(this PrescriptionVM pre) { IBL bl = new BlClass(); return(new DoctorVM(bl.GetDoctor(pre.DoctorId))); }