// GET: Patient/Details/5 public ActionResult Prescriptions(int id) { PatientModel model = new PatientModel(); var Prescriptions = model.GetPrescriptionsById(id); ViewBag.id = id; return(View(Prescriptions)); }