示例#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);
 }
示例#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);
 }