public ActionResult Index(string nameslug) { var account = _documentService.Query(new AccountByNameSlug(nameslug)).First(); var model = new TodayModel(); model.BindTo(account); return View("Index", model); }
public ActionResult ForwardADay(ForwardBackModel inModel) { var account = _documentService.Query(new AccountByNameSlug(inModel.nameslug)).First(); var model = new TodayModel(); model.BindTo(account, inModel.AsDay().AddDays(1)); return View("Index", model); }