Пример #1
0
        /// <summary>
        /// Upserts the specified cur DLID.
        /// </summary>
        /// <param name="curDlid">The cur DLID.</param>
        /// <param name="expression">The expression.</param>
        /// <param name="value">The value.</param>
        /// <param name="errors">The errors.</param>
        /// <returns></returns>
        public Guid Upsert(Guid curDlid, string expression, string value, out ErrorResultTO errors)
        {
            //2013.06.03: Ashley Lewis for bug 9498 - handle multiple regions in regular upsert
            var allRegions = DataListCleaningUtils.SplitIntoRegions(expression);
            var allValues  = allRegions.Select(region => value).ToList();

            return(_svrCompiler.Upsert(null, curDlid, allRegions, allValues, out errors));
        }