public object InsertUpdateDeliveryChallan(DeliveryChallan deliveryChallan) { if (deliveryChallan.DeliveryChallanDetailList.Count > 0) { deliveryChallan.DetailXML = _commonBusiness.GetXMLfromDeliveryChallanObject(deliveryChallan.DeliveryChallanDetailList, "ProductID,ProductModelID,ProductSpec,UnitCode"); } return(_deliveryChallanRepository.InsertUpdateDeliveryChallan(deliveryChallan)); }