コード例 #1
0
        // GET: EmployeeAwareness
        public ActionResult Index()
        {
            user user = (user)Session[ECGlobalConstants.CurrentUserMarcker];

            if (user == null || user.id == 0)
            {
                return(RedirectToAction("Index", "Account"));
            }

            #region EC-CC Viewbag
            ViewBag.is_cc = is_cc;
            string cc_ext = "";
            if (is_cc)
            {
                cc_ext = "_cc";
            }
            ViewBag.cc_extension = cc_ext;
            #endregion

            int       user_id = user.id;
            UserModel um      = new UserModel(user_id);
            ViewBag.um = um;
            CompanyModel cm = new CompanyModel(um._user.company_id);

            ViewBag.user_id     = user_id;
            ViewBag.all_posters = cm.GetAllPosters();

            return(View());
        }