core 统一 给 ViewBag 赋值,过滤器
电脑版发表于:2022/1/17 21:26
.net core过滤器给viewbag赋值,统一设置方便到在布局页中获取
//.net core过滤器给viewbag赋值,统一设置方便到在布局页中获取 Controller controller = context.Controller as Controller; controller.ViewBag.loginUserInfo = loginUserInfo;