Esempio n. 1
0
 private bool CheckExistedComputerId(HttpRequestMessage request, int id, out HttpResponseMessage errorResponse)
 {
     if (!_computerService.CheckExistedId(id))
     {
         {
             errorResponse = request.CreateErrorResponse(HttpStatusCode.BadRequest, CommonConstants.CannotFindComputerId);
             return(true);
         }
     }
     errorResponse = null;
     return(false);
 }