Пример #1
0
        public IActionResult GetTreatmentById(int id)
        {
            var result = ContentExecute <TreatmentListItemViewModel>(() =>
            {
                var treatment = _treatmentService.GetTreatmentById(id);
                return(new TreatmentListItemViewModel(treatment));
            });

            return(Json(result));
        }