コード例 #1
0
        public ActionResult OgretmenIndex()
        {
            HomeVM home = new HomeVM();

            home.Todos     = (tododb.GetActive().Where(x => x.RegisterId == ((User)Session["login"]).ID && x.IsComplete == false).ToList());
            home.UserCount = userdb.GetActive().Count();
            home.TagCount  = tagdb.GetActive().Count();
            home.Articles  = articledb.GetActive();
            home.Comments  = commentdb.GetActive();

            return(View(home));
        }
コード例 #2
0
 public ActionResult Index()
 {
     return(View(db.GetActive().Where(x => x.RegisterId == ((User)Session["login"]).ID && x.IsComplete == false).ToList()));
 }