public JsonResult Delete(long IndicatorID) { var indicator = _indicatorService.GetIndicator(IndicatorID); if (indicator != null) { _indicatorService.DeleteIndicator(indicator); return(Json(new IDJson <long> { ID = IndicatorID, Text = "Успешно удален!", Status = EntityStatus.SUCCESS })); } return(Json(new IDJson <long> { ID = IndicatorID, Text = "Вы ввели не правильные данные!", Status = EntityStatus.ERROR })); }