1234567891011121314151617181920212223242526272829303132333435363738 |
- using CZFW.Framework;
- using CZFW.MDB;
- using Microsoft.AspNetCore.Mvc;
- using Microsoft.AspNetCore.Mvc.Filters;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace CZFW.CMS.Builder.Controllers
- {
- public class CategoryController:AuthedControllerBase
- {
- string TplName;
- IPage _pageLogic;
- IMongoRepository _repository;
- public CategoryController(IPage page, IMongoRepository repository)
- {
- _pageLogic = page;
- _repository = repository;
- }
- public override void OnActionExecuting(ActionExecutingContext context)
- {
- TplName = GetSession<string>(CMSBuilderConstant.TPLNAME_SESSION_NAME);
- if (string.IsNullOrWhiteSpace(TplName))
- {
- context.Result = Json(Result(false, "没有指定当前要编辑的模板名称"));
- }
- base.OnActionExecuting(context);
- }
- //public IActionResult GetList()
- //{
- // var res = _pageLogic.GetListByName()
- //}
- }
- }
|