Beispiel #1
0
        public async Task <IActionResult> Page(int cid)
        {
            var VM = new ArticleViewModel();

            VM.content = await pageCache.GetByCid(cid);

            if (VM.content == null)
            {
                Message.Show(new Widget.MessageModel()
                {
                    Content = "页面似乎已经丢失,请返回首页。"
                });
            }

            ViewData.Model = VM;


            return(View());
        }