public HttpResponseMessage IsPackaged([FromUri] PackagedCheckRequest request)
 {
     try
     {
         var isPackaged = _warehouseService.IsPackaged(_workContext.User, request.OrderType, request.DepartmentId);
         return(Request.CreateResponse(HttpStatusCode.OK, new { IsPackaged = isPackaged }));
     }
     catch (Exception ex)
     {
         _logger.Error("Failed to check whether orders have been packaged", ex);
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, _resourceManager.GetString(ExceptionResources.GeneralException)));
     }
 }