
using PageAdmin.BLL;
using PageAdmin.Common;
using PageAdmin.Utils;
using System;
using System.Collections.Generic;
using System.Web.Mvc;

namespace PageAdmin.Web.Areas.Admin.Controllers
{
    /// <summary>
    /// 后台首页
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class HomeAttribute : ActionFilterAttribute
    {

        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            //当前版本号
            filterContext.Controller.ViewBag.CurrentVersion = XmlHelper.NodeValue("/configuration/version", "/Config/Version.config");

        }






    }
}
