public async Task <ActionResult> DeleteIndicator(int id) { try { await _context.DeleteIndicator(id); return(new NoContentResult()); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } }