public ActionResult FormTreatmentReport() { var treatments = treatmentService.GetAll(); var medicines = medicineService.GetAll(); var selectListTreatments = new SelectList(treatments, "Id", "Id"); ViewBag.treatments = selectListTreatments; ViewBag.medicines = medicines; return(View()); }
public ActionResult FormOperation() { var treatments = treatmentService.GetAll(); var typeOperations = typeOperationService.GetAll(); var medicines = medicineService.GetAll(); var selectListTreatments = new SelectList(treatments, "Id", "Id"); var selectListTypeOperations = new SelectList(typeOperations, "Id", "Name", "Name"); ViewBag.treatments = selectListTreatments; ViewBag.typeOperations = selectListTypeOperations; ViewBag.medicines = medicines; return(View(new OperationTransfer())); }
// GET: Treatment public ActionResult Index() { var treatments = treatmentService.GetAll(); var doctors = doctorService.GetAll(); var patients = patientService.GetAll(); ViewBag.doctors = doctors; ViewBag.patients = patients; return(View(treatments)); }
public ActionResult <IEnumerable <TreatmentViewModel> > GetTreatments() { return(_service.GetAll().Select(t => TreatmentMapper.DTOtoTreatmentVM(t)).ToArray()); }
// GET: Treatment public IActionResult Index() { // TODO: Create custom viewModel return(View(_treatmentService.GetAll().ToList())); }
// GET: Treatment public ActionResult Index() { var treatments = treatmentService.GetAll(); return(View(treatments)); }
public async Task <IEnumerable <TreatmentDto> > GetAll() { var treatments = await _treatmentService.GetAll(); return(treatments); }