Beispiel #1
0
        public void UpdateDiscountCodes(String xmlAjaxData)
        {
            var discountcodesList = NBrightBuyUtils.GetGenXmlListByAjax(xmlAjaxData, "");
            // build xml for data records
            var strXml = "<genxml><discountcodes>";

            foreach (var discountcodesInfo in discountcodesList)
            {
                strXml += discountcodesInfo.XMLData;
            }
            strXml += "</discountcodes></genxml>";

            // replace models xml
            DataRecord.ReplaceXmlNode(strXml, "genxml/discountcodes", "genxml");
            DiscountCodes = GetEntityList("discountcodes");
        }