示例#1
0
        public ActionResult <JudgeModel> GetJudge(int id)
        {
            var judge = judges.Get1Judge(id);

            if (judge == null)
            {
                return(NotFound());
            }
            return(judge);
        }
示例#2
0
 public ActionResult <JudgeParticipantModel> AddParticipant(JudgeParticipantModel judgeParticipant)
 {
     if (judgeParticipants.CreateNewJudgeParticipant(contests.Get1Contest(judgeParticipant.contestId), judges.Get1Judge(judgeParticipant.judgeId)))
     {
         return(Ok());
     }
     return(BadRequest());
 }