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

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

            return(treatments);
        }