public async Task <IHttpActionResult> GetByIdAsync(int id, RuleField fields, CancellationToken cancellationToken) { var rule = await _ruleManager.FindByIdAsync(id, fields, cancellationToken); if (rule == null) { return(NotFound()); } return(new RuleItemContentResult(rule, this)); }