Exemple #1
0
        /// <summary>
        /// 加载导航分类
        /// </summary>
        /// <returns></returns>
        public string LoadNavigationClassify()
        {
            NavigationRepository repository = new NavigationRepository();
            List <Mango.Models.NavigationClassifyModel> model = repository.GetClassifyList();

            return(JsonConvert.SerializeObject(model));
        }
Exemple #2
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            NavigationRepository repository = new NavigationRepository();

            ViewModels.NavigationViewModel model = new ViewModels.NavigationViewModel();
            model.ClassifyListData = repository.GetClassifyList();
            return(View(model));
        }