public AlbumsController(QNZContext context, IMapper mapper, IWebHostEnvironment hostingEnvironment, ICacheService cacheService) { _context = context; _mapper = mapper; _hostingEnvironment = hostingEnvironment; _cacheService = cacheService; }
public ProductsController(QNZContext context, IMapper mapper, IConfiguration config, IWritableOptions <AdminProductSet> writableLocations) { _context = context; _mapper = mapper; _config = config; _writableLocations = writableLocations; }
public DocumentsController(QNZContext context, IMapper mapper, ICacheService cacheService, IWebHostEnvironment hostingEnvironment) { _mapper = mapper; _context = context; _cacheService = cacheService; _hostingEnvironment = hostingEnvironment; }
protected async Task CreatedUpdatedPageMetaAsync(QNZContext db, PageMeta pm) { var origin = await db.PageMetas.FirstOrDefaultAsync(d => d.ModuleType == pm.ModuleType && d.ObjectId == pm.ObjectId); if (origin != null) { if (string.IsNullOrEmpty(pm.Title) && string.IsNullOrEmpty(pm.Keywords) && string.IsNullOrEmpty(pm.Description)) { db.Remove(origin); } else { origin.Title = pm.Title; origin.Keywords = pm.Keywords; origin.Description = pm.Description; db.Entry(origin).State = EntityState.Modified; } } else { if (!string.IsNullOrEmpty(pm.Title) || !string.IsNullOrEmpty(pm.Keywords) || !string.IsNullOrEmpty(pm.Description)) { db.Add(pm); } } await db.SaveChangesAsync(); }
public WebpartsController(IWebHostEnvironment hostingEnvironment, QNZContext context, IMapper mapper, IConfiguration config) { _hostingEnvironment = hostingEnvironment; _context = context; _mapper = mapper; _config = config; }
public ErrorLogsController(QNZContext context, IMapper mapper, IConfiguration config, IWritableOptions <SiteLogSet> writableLocations) { _context = context; _mapper = mapper; _config = config; _writableLocations = writableLocations; }
public UserController(IUserServices userServices, IRoleServices roleServices, IMapper mapper, QNZContext context) { _userServices = userServices; _roleServices = roleServices; _mapper = mapper; _context = context; }
public HomeController(/*IViewRenderService viewRenderService,*/ IWebHostEnvironment hostingEnvironment, ICacheService cache, QNZContext context, IMapper mapper) { _hostingEnvironment = hostingEnvironment; _cacheService = cache; _context = context; _mapper = mapper; _fileProvider = hostingEnvironment.WebRootFileProvider; // _viewRenderService = viewRenderService; }
public NavigationController(IMenuServices menuService, IViewRenderService viewRenderService, IMapper mapper, QNZContext context, ICacheService memoryCache) { _menuService = menuService; _viewRenderService = viewRenderService; _mapper = mapper; _context = context; _cache = memoryCache; }
public MenuController(IMenuServices menuService, IMenuCategoryServices menuCategoryService, IMapper mapper, QNZContext context, ICacheService memoryCache) { _menuService = menuService; _menuCategoryService = menuCategoryService; //_viewRenderService = viewRenderService; _mapper = mapper; _context = context; _cache = memoryCache; }
public PermissionHandler(IHttpContextAccessor httpContextAccessor, /*IMenuServices menuServices*/ QNZContext db, ILoggerFactory loggerFactory) { _db = db; _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _logger = loggerFactory.CreateLogger(this.GetType().FullName); }
public MenuCategoryServices(QNZContext db) { _db = db; }
public WorkController(QNZContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public ExhibitionsController(QNZContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public MoveNavComponent(QNZContext context) { _context = context; }
public PageSubNavComponent(QNZContext context, ICacheService cacheService) { _cacheService = cacheService; _context = context; }
public ArticlesController(QNZContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public HomeController(QNZContext context) { _context = context; }
public MemorabiliumController(IWebHostEnvironment hostingEnvironment, QNZContext context, IMapper mapper) { _hostingEnvironment = hostingEnvironment; _context = context; _mapper = mapper; }
public ArticlesController(QNZContext context) { _context = context; }
public PostCategoriesComponent(QNZContext context) { _context = context; }
public PhotosController(QNZContext context, IMapper mapper, ICacheService cacheService) { _cacheService = cacheService; _context = context; _mapper = mapper; }
public AdvertisingSpacesController(QNZContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public MenuServices(QNZContext db) { _db = db; }
public JobCategoriesController(QNZContext context, IMapper mapper, IWebHostEnvironment hostingEnvironment) { _context = context; _mapper = mapper; _hostingEnvironment = hostingEnvironment; }
public AdvertisementsController(QNZContext context, IMapper mapper, ICacheService cacheService) { _context = context; _mapper = mapper; _cacheService = cacheService; }
public ContactController(QNZContext context, IMapper mapper, IEmailService emailService) { _context = context; _mapper = mapper; _emailService = emailService; }
public SearchController(QNZContext context, IMapper mapper, ICacheService cacheService) { _mapper = mapper; _context = context; _cacheService = cacheService; }
public NavListComponent(QNZContext context, ICacheService memoryCache) { _context = context; _cache = memoryCache; }
public RolesController(IMapper mapper, QNZContext context, ICacheService memoryCache) { _context = context; _mapper = mapper; _cache = memoryCache; }