Example #1
0
        /// <summary>
        /// Notify that everything has been saved and create a save point in the action stack.
        /// </summary>
        internal void NotifySave()
        {
            service.NotifySave();
            transactions.ForEach(x => x.NotifySave());
            transactions.ForEach(x => x.IsSavePoint = false);
            var savePoint = transactions.LastOrDefault(x => x.IsSaved);

            if (savePoint != null)
            {
                savePoint.IsSavePoint = true;
            }
        }