示例#1
0
        public IActionResult CreateMenuItem(int menuId)
        {
            var currentCulture = CultureInfo.CurrentCulture.Name;

            return(View(new MenuItemViewModel {
                MenuId = menuId, Pages = _mapper.Map <List <PageViewModel> >(_localizedPageService.GetAll(currentCulture).ToList())
            }));
        }
示例#2
0
        public IActionResult Index()
        {
            var currentCulture = CultureInfo.CurrentCulture.Name;
            var pages          = _mapper.Map <List <PageViewModel> >(_localizedPageService.GetAll(currentCulture));

            return(View(pages));
        }