Exemplo n.º 1
0
        public ActionResult Title()
        {
            TitleListViewModel      tlvm = new TitleListViewModel();
            ContentionBusinessLayer cbl  = new ContentionBusinessLayer();
            AdministerBusinessLayer abl  = new AdministerBusinessLayer();

            List <Title> t = cbl.GetTitleList();

            tlvm.Titles = TitleSeal(t);
            tlvm.Users  = abl.GetUser(true);

            return(View("Title", tlvm));
        }
        public ActionResult MyContention()
        {
            ContentionController    cc  = new ContentionController();
            ContentionBusinessLayer cbl = new ContentionBusinessLayer();

            string s   = System.Web.HttpContext.Current.Session["UserID"].ToString();
            int    UID = int.Parse(s);

            List <Title>       t   = cbl.GetTitleList(UID);
            TitleListViewModel tvm = new TitleListViewModel();

            tvm.Titles = cc.TitleSeal(t);

            return(View("MyContention", tvm));
        }