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)); }
public ActionResult Index() { return(View(db.GetActive().Where(x => x.RegisterId == ((User)Session["login"]).ID && x.IsComplete == false).ToList())); }