Exemple #1
0
 public HttpResponseMessage Delete(int id)
 {
     try
     {
         _errorService.Delete(id);
         return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse()));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
 }
Exemple #2
0
 public HttpResponseMessage Delete(int id)
 {
     _errorLogService.Delete(id);
     return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse()));
 }