public async Task ManuallyInvokeRuleCheck(string twitchUsername) { var requestModel = new ManuallyRunRuleCheckModel { TwitchUsername = twitchUsername }; await apiGateway.Post(requestModel, "channels", routeValues : new string[] { CurrentlySelectedChannel, "users", "ruleCheck" }).ConfigureAwait(false); }
public async Task <IActionResult> SendBanCommandForUser([FromRoute] string channelName, [FromBody] ManuallyRunRuleCheckModel model) { await channelService.InitiateManualRuleCheck(channelName, model.TwitchUsername, ApplicationContext).ConfigureAwait(false); return(Ok()); }