Example #1
0
        public async Task <PartialViewResult> CreateOrEdit(Guid id)
        {
            var functionName = "编辑文章数据";
            var boVM         = await _boVMService.GetVM(id);

            if (!boVM.IsNew)
            {
                functionName = "编辑文章数据:" + boVM.Name;
            }

            ViewData["ModuleName"]   = "站点文章信息管理";
            ViewData["FunctionName"] = functionName;
            ViewData["BoVMId"]       = boVM.Id;

            return(PartialView("_CreateOrEdit", boVM));
        }
Example #2
0
        public async Task <IActionResult> ArticleContent(Guid id)
        {
            var boVM = await _boVMService.GetVM(id);

            ViewData["ModuleName"]   = "站点文章信息管理";
            ViewData["FunctionName"] = "预览:" + boVM.Name;
            ViewData["BoVMId"]       = boVM.Id;

            return(View("ArticleContent", boVM));
        }