-
No results found.
Try your search with a different keyword or use * as a wildcard.
MenuController.cs
using Microsoft.AspNetCore.Mvc;
using Nop.Core.Domain.Menus;
using Nop.Services.Catalog;
using Nop.Services.Localization;
using Nop.Services.Logging;
using Nop.Services.Menus;
using Nop.Services.Messages;
using Nop.Services.Security;
using Nop.Services.Stores;
using Nop.Web.Areas.Admin.Factories;
using Nop.Web.Areas.Admin.Infrastructure.Mapper.Extensions;
using Nop.Web.Areas.Admin.Models.Menus;
using Nop.Web.Framework.Mvc.Filters;
namespace Nop.Web.Areas.Admin.Controllers;
public partial class MenuController : BaseAdminController
{
#region Fields
protected readonly ICustomerActivityService _customerActivityService;
protected readonly ILocalizationService _localizationService;
protected readonly ILocalizedEntityService _localizedEntityService;
protected readonly IMenuModelFactory _menuModelFactory;
protected readonly IMenuService _menuService;
protected readonly INotificationService _notificationService;
protected readonly IProductService _productService;
protected readonly IStoreMappingService _storeMappingService;
#endregion
#region Ctor
public MenuController(
ICustomerActivityService customerActivityService,
ILocalizationService localizationService,
ILocalizedEntityService localizedEntityService,
IMenuModelFactory menuModelFactory,
IMenuService menuService,
INotificationService notificationService,
IProductService productService,
IStoreMappingService storeMappingService)
{
_customerActivityService = customerActivityService;
_localizationService = localizationService;
_localizedEntityService = localizedEntityService;
_menuModelFactory = menuModelFactory;
_menuService = menuService;
_notificationService = notificationService;
_productService = productService;
_storeMappingService = storeMappingService;
}
#endregion
#region Utilities
protected virtual void DefinePopupViewBagData(int entityId, string entityInfo)
{
ViewBag.RefreshPage = true;
ViewBag.entityId = entityId;
ViewBag.entityInfo = entityInfo;
}
protected virtual async Task