Пример #1
0
 public HttpResponseMessage DeleteResource([FromUri] long id)
 {
     try
     {
         ResourceRepository.DeleteResourceInfo(id);
         return(Request.CreateResponse(System.Net.HttpStatusCode.OK, 202));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(System.Net.HttpStatusCode.NotFound, ex));
     }
 }