コード例 #1
0
 public HttpResponseMessage GetByPage(int pageId)
 {
     try
     {
         IEnumerable <ErrorLog> errorLogs = _errorLogService.SelectByPage(pageId);
         return(Request.CreateResponse(HttpStatusCode.OK, errorLogs));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex.Message));
     }
 }