public async Task <ActionResult <bool> > Delete(int id) { try { await _severityRuleService.Delete(id); return(Ok(true)); } catch (ArgumentOutOfRangeException) { return(BadRequest($"Severity rule with id {id} does not exists")); } catch (Exception) { return(BadRequest($"Failed to delete severity rule with {id}")); } }