Ejemplo n.º 1
0
        public ActionResult <JudgeModel> GetJudge(int id)
        {
            var judge = judges.Get1Judge(id);

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