public object InsertUpdateProductionQC(ProductionQC productionQC) { if (productionQC.ProductionQCDetailList.Count > 0) { productionQC.DetailXML = _commonBusiness.GetXMLfromProductionQCObject(productionQC.ProductionQCDetailList, "ProductID,ProductModelID,QCBy,QCDateFormatted"); } return(_productionQCRepository.InsertUpdateProductionQC(productionQC)); }