Beispiel #1
0
 public IActionResult JudgeIndex(int id, JudgeSingleProjectIndexViewModel model)
 {
     if (model == null)
     {
         model        = new JudgeSingleProjectIndexViewModel();
         model.Judged = true;
     }
     model.ProjectModel = GetProjectModel(id);
     return(View(model));
 }
Beispiel #2
0
        public IActionResult JudgeIndex(int id)
        {
            var model = new JudgeSingleProjectIndexViewModel
            {
                ProjectModel = GetProjectModel(id),
                Judged       = false
            };

            return(View(model));
        }