예제 #1
0
        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));
        }