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()) })); }
public IActionResult Index() { var currentCulture = CultureInfo.CurrentCulture.Name; var pages = _mapper.Map <List <PageViewModel> >(_localizedPageService.GetAll(currentCulture)); return(View(pages)); }