예제 #1
0
        //
        // GET: /Accounts/Index/
        public ActionResult Index()
        {
            Session["moduleId"] = 2; // do your stuff

            Session["financialYear"] = new FinancialYearHelper().SetFinancialYearId(Convert.ToInt32(Session["companyId"].ToString()), Convert.ToInt32(Session["moduleId"].ToString()));
            return RedirectToAction("Index", "Dashboard", new { area="Accounts"});
        }
        protected override void Initialize(RequestContext requestContext)
        {
            base.Initialize(requestContext);

            Session["financialYear"] = new FinancialYearHelper().SetFinancialYearId(Convert.ToInt32(Session["companyId"].ToString()), Convert.ToInt32(Session["moduleId"].ToString()));
        }