Beispiel #1
0
        public HttpResponseMessage <SatelliteImage> Get(int id, HttpRequestMessage request)
        {
            var satelliteImage = satelliteImageRepository.Get(id);

            if (satelliteImage == null)
            {
                return(new HttpResponseMessage <SatelliteImage>(HttpStatusCode.NotFound));
            }
            return(new HttpResponseMessage <SatelliteImage>(satelliteImage)
            {
                StatusCode = HttpStatusCode.OK
            });
        }