예제 #1
0
        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());
        }
예제 #2
0
        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()));
        }
예제 #3
0
        // 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());
 }
예제 #5
0
 // GET: Treatment
 public IActionResult Index()
 {
     // TODO: Create custom viewModel
     return(View(_treatmentService.GetAll().ToList()));
 }
예제 #6
0
        // GET: Treatment
        public ActionResult Index()
        {
            var treatments = treatmentService.GetAll();

            return(View(treatments));
        }
예제 #7
0
        public async Task <IEnumerable <TreatmentDto> > GetAll()
        {
            var treatments = await _treatmentService.GetAll();

            return(treatments);
        }