public ActionResult Index() { ViewBag.Title = "Home Page"; var model = new HomeViewModel(); var htLogSvc = new HeightLogSvc(); model.Log = htLogSvc.GetRecentHeightLogs(10); model.CurrentHeight = model.Log.FirstOrDefault(); // model.Log = htLogSvc.GetPeriodHeightLogsPlusOneMore(new DateTime(2015, 06, 07), new DateTime(2015, 06, 07, 23, 59, 59)); return(View(model)); }
// GET: Log public ActionResult Index() { var htLogSvc = new HeightLogSvc(); return(View(htLogSvc.GetRecentHeightLogs(100))); }