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