Beispiel #1
0
        public override void OnNavigatingFrom(NavigatingFromEventArgs e, Dictionary <string, object> viewState, bool suspending)
        {
            base.OnNavigatingFrom(e, viewState, suspending);

            // Store the errors collection manually
            if (viewState != null)
            {
                AddEntityStateValue("errorsCollection", _paymentMethod.GetAllErrors(), viewState);
            }
        }