public HttpResponseMessage AddRankingEntry([FromBody] RankingEntryDetails rankingEntryDetails)
 {
     if (ModelState.IsValid)
     {
         Contestant contestant = ContestantsSample.GetContestant(rankingEntryDetails.ContestantId);
         Route      route      = RoutesSample.GetRoute(rankingEntryDetails.RouteId);
         RankingEntriesSample.AddRankingEntry(contestant, route);
         return(new HttpResponseMessage(HttpStatusCode.OK));
     }
     return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
 }
 public HttpResponseMessage GetContestant(long id)
 {
     try
     {
         Contestant contestant = ContestantsSample.GetContestant(id);
         return(Request.CreateResponse(HttpStatusCode.OK, contestant));
     }
     catch (UserNotFoundException e)
     {
         //TODO: logowanie wyjątków!
         return(new HttpResponseMessage(HttpStatusCode.NotFound));
     }
 }