Пример #1
0
        // GET: Prescription/Create
        public ActionResult Create(int?Id)
        {
            var patientModel = new PatientModel();

            PatientViewModel             patientViewModel    = patientModel.GetPatient((int)Id);
            PatientPrescriptionViewModel patientPrescription = new PatientPrescriptionViewModel();

            patientPrescription.patientList = patientViewModel;

            return(View(patientPrescription));
        }
Пример #2
0
        // GET: Prescription

        // GET: Prescription/Details/5
        public ActionResult History(int?Id)
        {
            if (Id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            /*IBL bl=new bl()
            *  bl.getpatient()*/
            var patientModel = new PatientModel();
            PatientViewModel patientViewModel = patientModel.GetPatient((int)Id);
            var prescription = prescriptionModel.GetPrescriptions();
            PatientPrescriptionViewModel patientPrescription = new PatientPrescriptionViewModel();

            patientPrescription.patientList      = patientViewModel;
            patientPrescription.prescriptionList = prescription;
            return(View(patientPrescription));
        }