public IActionResult GetTreatmentById(int id) { var result = ContentExecute <TreatmentListItemViewModel>(() => { var treatment = _treatmentService.GetTreatmentById(id); return(new TreatmentListItemViewModel(treatment)); }); return(Json(result)); }
public IActionResult GetTreatmentById(int id) { var result = ContentExecute <TreatmentListItemViewModel>(() => { var treatment = _treatmentService.GetTreatmentById(id); return(new TreatmentListItemViewModel(treatment)); }); return(Json(result)); }