public async Task <ActionResult> DeleteAsync(Guid id) { await _rulesService .DeleteAsync(id); return(Accepted()); }
public async Task <IActionResult> DeleteAsync(int id) { var result = await _ruleService.DeleteAsync(id); if (result == null) { return(BadRequest(result.Message)); } return(Ok(result.Message)); }
public async Task <IActionResult> DeleteRule(int id) { var result = await _ruleService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } return(NoContent()); }
public async Task <IActionResult> DeleteRuleAsync([FromRoute] int id) { await service.DeleteAsync(id); return(new OkResult()); }