Пример #1
0
        public static StatusBag StatusBag(this TempDataDictionary helper)
        {
            var statusBag = helper[StatusBagKey] as StatusBag;

            if (statusBag == null)
            {
                statusBag = new StatusBag();
                helper[StatusBagKey] = statusBag;
            }

            return statusBag;
        }
Пример #2
0
        public static StatusBag SetStatusBag(this TempDataDictionary helper, StatusBag statusBagSource)
        {
            helper[StatusBagKey] = statusBagSource;

            return statusBagSource;
        }