Exemplo n.º 1
0
 public HttpResponseMessage DeletePlanet(Planet planet)
 {
     try
     {
         var response = _planetService.DeleteNewPlanet(planet);
         return(Request.CreateResponse(HttpStatusCode.OK, response));
     }
     catch (Exception e)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.Message));
     }
 }