public object InsertUpdateServiceCall(ServiceCall serviceCall) { if (serviceCall.ServiceCallDetailList.Count > 0) { serviceCall.DetailXML = _commonBusiness.GetXMLfromServiceCallObject(serviceCall.ServiceCallDetailList, ""); } if (serviceCall.ServiceCallChargeList.Count > 0) { serviceCall.CallChargeXML = _commonBusiness.GetXMLfromServiceCallChargeObject(serviceCall.ServiceCallChargeList, "OtherChargeCode,ChargeAmount"); } return(_ServiceCallRepository.InsertUpdateServiceCall(serviceCall)); }