コード例 #1
0
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            Logger.Trace("OnActionExecuting");

            var fundId = filterContext.ActionParameters["id"].ToString()
                         .ToNullableInt32();

            var fund = Funds.GetById(fundId.Value)
                       .FirstOrDefault();

            filterContext.Controller.ViewBag.FundContext = fund;
        }