public ActionResult Prescriptions(int?id) { _nurseService.ChangePrescriptionStatus(id); var prescriptions = _nurseService.GetPrescriptions().ProjectToList <PrescriptionViewModel>(); if (prescriptions != null) { return(View(prescriptions)); } return(HttpNotFound()); }