Beispiel #1
0
 public HttpResponseMessage <List <Score> > GetActivity(int id, HttpRequestMessage request)
 {
     try
     {
         return(new HttpResponseMessage <List <Score> >(landRepository.GetLastUsersWithActivityScore(id))
         {
             StatusCode = HttpStatusCode.OK
         });
     }
     catch
     {
         return(new HttpResponseMessage <List <Score> >(null)
         {
             StatusCode = HttpStatusCode.BadRequest
         });
     }
 }