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)); } }
public HttpResponseMessage Delete(int id) { _errorLogService.Delete(id); return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse())); }