Example #1
0
 public ActionResult Index(string nameslug)
 {
     var account = _documentService.Query(new AccountByNameSlug(nameslug)).First();
     var model = new TodayModel();
     model.BindTo(account);
     return View("Index", model);
 }
Example #2
0
 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);
 }