// GET: Tracker public ActionResult Index() { TrackerViewModel model = new TrackerViewModel(); model.CurrentPage = new Page("Summary", "/Tracker"); model.UserId = DBHelper.DBGetUserLogin(User.Identity.Name).Id; List<Task> tasks = DBHelper.DBGetTasks(model.UserId); model.TaskTotal = tasks.Count; model.TaskComplete = tasks.Where(x => x.Complete == 100).ToList().Count; return View(model); }
public ActionResult ComingSoon(string pageName = "") { TrackerViewModel model = new TrackerViewModel(); model.CurrentPage = new Page(pageName, "/Tracker/ComingSoon"); return View(model); }