public ActionResult <JudgeModel> GetJudge(int id) { var judge = judges.Get1Judge(id); if (judge == null) { return(NotFound()); } return(judge); }
public ActionResult <JudgeParticipantModel> AddParticipant(JudgeParticipantModel judgeParticipant) { if (judgeParticipants.CreateNewJudgeParticipant(contests.Get1Contest(judgeParticipant.contestId), judges.Get1Judge(judgeParticipant.judgeId))) { return(Ok()); } return(BadRequest()); }