public ActionResult Index(int id) { var misc = MiscService.GetFromCache(m => m.Id == id) ?? throw new NotFoundException("页面未找到"); misc.ModifyDate = misc.ModifyDate.ToTimeZone(HttpContext.Session.Get <string>(SessionKey.TimeZone)); misc.PostDate = misc.PostDate.ToTimeZone(HttpContext.Session.Get <string>(SessionKey.TimeZone)); return(View(misc)); }
public ActionResult Index(int id) { var misc = MiscService.GetFromCache(m => m.Id == id) ?? throw new NotFoundException("页面未找到"); return(View(misc)); }