Beispiel #1
0
 public HttpResponseMessage <decimal?> GetPresicionPercentage(Earthwatcher e, HttpRequestMessage <Earthwatcher> request)
 {
     try
     {
         decimal?percentage = landRepository.GetPrecicionDenouncePercentageByRegionId(e.PlayingRegion, e.Id);
         return(new HttpResponseMessage <decimal?>(percentage)
         {
             StatusCode = HttpStatusCode.OK
         });
     }
     catch
     {
         return(new HttpResponseMessage <decimal?>(HttpStatusCode.InternalServerError));
     }
 }