As title, anyone can help how to access session in _Layout view? Do I need to add DI? like this @inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor ?
↧
As title, anyone can help how to access session in _Layout view? Do I need to add DI? like this @inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContextAccessor ?