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

            if (satelliteImage != null)
            {
                satelliteImageRepository.Delete(satelliteImage.Id);

                return(new HttpResponseMessage {
                    StatusCode = HttpStatusCode.OK
                });
            }
            return(new HttpResponseMessage {
                StatusCode = HttpStatusCode.NotFound
            });
        }