samedi 12 décembre 2020

ASP.NET MVC - Accessing a service from a layout

In my ASP.NET MVC solution I have a number of services. One of them, SessionService, is used to access the currently selected region and time span.

I want to display those in a layout used to decorate views. What is the best design approach to access those values which are stored in the SessionService?

Aucun commentaire:

Enregistrer un commentaire