public HttpResponseMessage Get(int OrderID) { try { var Department = _SalesOrderService.GetAllsales(OrderID); return(Request.CreateResponse(HttpStatusCode.OK, Department)); } catch (Exception ex) { throw new ApiDataException(1000, "Department Not Found", HttpStatusCode.NotFound); } }