public LoginController ( IConfiguration configuration, IStringLocalizer <LoginController> localizer, IHostingEnvironment hostEnv, IUserService usrSvc, IMenuBuilderService mbSvc ) { _config = configuration; _localizer = localizer; _hostingEnv = hostEnv; _userService = usrSvc; _menuBuilderService = mbSvc; }
public RoleManagementService( ICacheProvider cacheProvider, IMenuBuilderService menuBuilderService, IMapper mapper, IUnitOfWork <Guid, RoleManagementDbContext> unitOfWork, ILogger <RoleManagementService> logger) { _cacheProvider = cacheProvider; _unitOfWork = unitOfWork; _menuBuilderService = menuBuilderService; _mapper = mapper; _roleRepository = unitOfWork.GetRepository <Role>(); _roleMenuRepository = unitOfWork.GetRepository <RoleMenu>(); _operationRepository = unitOfWork.GetRepository <Operation>(); _menuRepository = unitOfWork.GetRepository <Menu>(); _menuTypeRepository = unitOfWork.GetRepository <MenuType>(); _roleOperationRepository = unitOfWork.GetRepository <RoleOperation>(); }
/// <summary> /// Initialize /// </summary> /// <param name="menuservice"></param> public ApplicationController(IMenuBuilderService menuservice) { _menuService = menuservice; }
public Sidemenu(IMenuBuilderService menuBuilderService, IHttpContextAccessor httpContextAccessor) { _menuBuilderService = menuBuilderService; _httpContextAccessor = httpContextAccessor; }
public MenuController(IMenuBuilderService menuBuilderService) { this.menuBuilderService = menuBuilderService; }