コード例 #1
0
        public async Task <ActionResult> CopyRuleToAsync([FromBody] RuleCopyToBO model)
        {
            var rule = await _rulesService
                       .CopyToAsync(model.RuleId, model.ContainerId);

            if (rule != null)
            {
                return(CreatedAtAction("Get", new { id = rule.Id }, rule));
            }

            return(BadRequest());
        }