How to pass data to layout.cshtml in shared view from home controller Index view
public ActionResult Index()
var _userId = HttpContext.Session.GetString("UserCode");
var _password= HttpContext.Session.GetString("Password");
var results = _userService.LoadUserMenuDetail(_userId, _password);
in above code i receive data from sp with multiple table data for ex: results.UserDetail results.MenuDetail etc,
i need to pass this to layout form to display menu list, so i need to assign this to session, how to assign and use inside layout view which available in shared view folder?