Example #1
0
        private RedirectResult RedirectNext(NextSection next)
        {
            if (next.Type == NextType.Complete)
            {
                return(Redirect(BsgActions.Complete()));
            }

            if (next.Type == NextType.Ineligible)
            {
                return(Redirect(BsgActions.Ineligible(next.Id)));
            }

            var action = SectionActionStrategy.For(next.Section.Value).Action(next.Id);

            return(Redirect(action));
        }