//[HttpPost] //public ActionResult patientImagesList(int patientID = 0, int ImageCategoryID = 0, int AppointmentID = 0) //{ // if (patientID == 0) // patientID = getCurrentPatientID(); // IEnumerable<ImagesViewModel> patientImageList = patientRepository.getPatientImagesList(patientID); // ImageListWrapViewModel imageListWrapViewModel = new ImageListWrapViewModel(); // imageListWrapViewModel.imageCategoryList = imageRepository.getImagesCategoryList(); // imageListWrapViewModel.appointmentList = appointmentRepository.getPatientAppountmentList(patientID); ; // imageListWrapViewModel.patientImageList = patientImageList; // if (patientImageList == null) // return HttpNotFound(); // ViewBag.patientID = patientID; // return View(patientImageList); //} public ActionResult PatientImagesDetails(int patientImageID) { ImagesPresentViewModel patientImage = patientRepository.getPatinetImagesDetails(patientImageID); if (patientImage == null) { return(HttpNotFound()); } return(View(patientImage)); }
public ActionResult PatientImagesEdit(int patientImageID = 0) { ImagesPresentViewModel patientImagesViewModel = patientRepository.getPatinetImagesDetails(patientImageID); if (patientImagesViewModel == null) { return(HttpNotFound()); } // ViewBag.patientID = patientHistory.PatientID; return(View(patientImagesViewModel)); }