Beispiel #1
0
        public ActionResult Index()
        {
            model = (SessionModel)this.Session["SessionData"];

            NoticeHelper nh               = new NoticeHelper();
            var          serializer       = new JavaScriptSerializer();
            var          serializedResult = serializer.Serialize(nh.getAllNotice());

            ViewBag.UserName = model.UserName;
            ViewBag.rolName  = model.RolName;
            ViewBag.news2    = serializedResult;
            //ViewBag.news = nh.getAllNotice();
            ViewBag.Navbar = SerializerNavBar(model.ProfileID);

            return(View());
        }