public async Task <IActionResult> UpdateRuleOnChannel([FromRoute] string channelName, [FromRoute] Guid ruleId, [FromBody] UpdateChannelRuleModel model)
        {
            var action = model.ChannelRuleAction.Map();
            var result = await channelService.UpdateRuleForChannel(channelName, ruleId, model.RuleName, 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()));
        }
        public async Task UpdateChannelRule(UpdateChannelRuleModel model, Guid ruleId)
        {
            Channel = await apiGateway.Post <ChannelModel, UpdateChannelRuleModel>(model, "channels", routeValues : new string[] { CurrentlySelectedChannelName, "channelRules", ruleId.ToString() }).ConfigureAwait(false);

            NotifyStateChanged();
        }