Ejemplo n.º 1
0
        public ActionResult ViewBooking(int id, string viewMessage = "", int patientId = 0)
        {
            var diseaseDdl    = _objIAdminOperations.GetAllDiseases();
            var bookingDetail = _objIPatient.GetPatientBookingById(id);

            if (patientId > 0)
            {
                var patientDetails = _objIPatient.GetPatientDetailsById(patientId);
                if (patientDetails != null)
                {
                    bookingDetail.PATIENTID = patientDetails.PATIENTID;
                }
            }

            var patientDdl    = _objIPatient.GetPatientDdl();
            var bookingStatus = DropDownExtension.GetBookingStatus();

            bookingDetail.DiseaseDdl       = new SelectList(diseaseDdl, "DISEASEID", "DISEASENAME");
            bookingDetail.PatientList      = patientDdl.ConverToJsonString();
            bookingDetail.BookingStatusDdl = new SelectList(bookingStatus, "Value", "Key");
            ViewBag.Message = viewMessage;
            return(View(bookingDetail));
        }