Example #1
0
 public IHttpActionResult ContestantSubmissions(int contest_id, int user_id)
 {
     try{
         var submissions = contest_repository.GetContestantSubmissions(contest_id, user_id);
         return(Ok(SubmissionResponseData.MapTo(submissions)));
     }
     catch (ObjectNotFoundException e) {
         return(NotFound());
     }
 }