Esempio n. 1
0
 public ActionResult <JudgeParticipantModel> AddParticipant(JudgeParticipantModel judgeParticipant)
 {
     if (judgeParticipants.CreateNewJudgeParticipant(contests.Get1Contest(judgeParticipant.contestId), judges.Get1Judge(judgeParticipant.judgeId)))
     {
         return(Ok());
     }
     return(BadRequest());
 }
Esempio n. 2
0
        public ActionResult <ContestModel> GetContest(int id)
        {
            ContestModel contest = contests.Get1Contest(id);

            if (contest != null)
            {
                return(contest);
            }
            return(NotFound());
        }