You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code as supplied here, each page needs to have a toSession method exposed that essentially just returns the session field out of its model. Why not make this more generic?
On that note, why have the session as part of the individual page models if it needs to be shared across all of them? Why is it not part of the top-level model?
In the code as supplied here, each page needs to have a
toSession
method exposed that essentially just returns the session field out of its model. Why not make this more generic?Then you can replace the calls in the
case
statement:with
And there is no longer a need to have a
toSession
in the pages, unless you want it.The text was updated successfully, but these errors were encountered: