public IActionResult RandomActions(RandomActionsQuery model) { var tasks = TaskerHelper.GenerateRandom(RoutingKeys.Random, model.Count, model.Min, model.Max); Send(tasks); return(new JsonResult(new { message = "Tasks are sent" })); }
static ArgsTask CreateTask() { return(TaskerHelper.GenerateRandom(RoutingKey).First()); }