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