public async Task <IActionResult> AddRuleToChannel([FromRoute] string channelName, [FromBody] AddChannelRuleModel model)
        {
            var action = model.ChannelRuleAction.Map();

            var result = await channelService.AddRuleToChannel(channelName, model.RuleName, model.TagId, model.BansForTrigger, model.TimeoutsForTrigger, action, ApplicationContext).ConfigureAwait(false);

            if (result.State == ResultState.AccessDenied)
            {
                return(Unauthorized());
            }

            if (result.State == ResultState.NoContent)
            {
                return(BadRequest());
            }

            return(Ok(result.Data.Map()));
        }