public ActionResult Print(int id) { PatientModel model = new PatientModel(); var Prescription = model.GetPrescriptions().First(m => m.Id == id); Patient patient = model.GetPatients().First(p => p.Id == Prescription.PatientId); ViewBag.PatientName = patient.FirstName + " " + patient.LastName; ViewBag.PatientEmail = patient.Email; ViewBag.PatientPhone = patient.Phone; return(View(Prescription)); }