Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="xmlDoc"></param>
        public static void SetUserMainDuty(XmlDocument xmlDoc)
        {
            DataOpContext dataOpContext = InitEventContexts();

            dataOpContext.OnBeforeSetUserMainDuty(xmlDoc);

            using (TransactionScope scope = TransactionScopeFactory.Create())
            {
                dataOpContext.OnSetUserMainDuty(xmlDoc);
                scope.Complete();
            }
        }