public async Task <IActionResult> Add(int cid,
                                              [FromServices] IJudgehostStore jhs)
        {
            ViewBag.Teams = await Facade.Teams.ListNamesAsync(cid);

            ViewBag.Judgehosts = await jhs.ListAsync();

            return(View(new AddRejudgingModel()));
        }
Beispiel #2
0
        public async Task <IActionResult> Updates(
            [FromServices] IJudgehostStore jh,
            [FromServices] IInternalErrorStore ie)
        {
            var judgehosts = await jh.GetJudgeStatusAsync();

            var internal_error = await ie.GetJudgeStatusAsync();

            return(Json(new { judgehosts, internal_error }));
        }
 public JudgehostsController(
     ILogger <JudgehostsController> logger,
     IJudgehostStore judgehosts,
     IJudgingStore judgings,
     TelemetryClient telemetry)
 {
     Logger     = logger;
     Judgehosts = judgehosts;
     Judgings   = judgings;
     Telemetry  = telemetry;
 }
 public JudgehostsController(IJudgehostStore store)
 => Store = store;