using CZFW.CMS.Admin; using CZFW.Framework; using CZFW.Framework.Model; using CZFW.MDB.Util; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; using System.Threading.Tasks; namespace CZFW.CMS.Admin { public class AdminControllerBase : AuthedControllerBase { public SiteCacheModel Site { get; set; } public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { Site = GetSession(CMSAdminConstant.CURRENT_SITE_SESSION_NAME); return base.OnActionExecutionAsync(context, next); } } }