﻿using AutoMapper;
using Bivi.Domaine;
using Bivi.FrontOffice.Web.ViewModels;
using Bivi.FrontOffice.Web.ViewModels.ModelBuilders;
using Bivi.FrontOffice.Web.ViewModels.Pages.Common;
using Bivi.Infrastructure.Attributes.Modularity;
using Bivi.Infrastructure.Constant;
using Bivi.Infrastructure.Services.Caching;
using Bivi.Infrastructure.Services.Depots;
using Bivi.Infrastructure.Services.Encryption;
using Bivi.Infrastructure.Services.Search;
using Castle.Core.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace Bivi.FrontOffice.Web.Controllers.Controllers
{
    public partial class PlanDuSiteController : ModularController
    {
        protected ISearchEngine _searchEngine;

        public PlanDuSiteController(
            ILogger logger,
            ICryptography encryption,
            IDepotFactory depotFactory,
            ICaching cachingService,
            ICommonModelBuilder commonModelBuilder,
            ISearchEngine searchEngine)
            : base(logger, encryption, depotFactory, cachingService, commonModelBuilder)
        {
            _searchEngine = searchEngine;
        }

        [PageAttribute("PLAN_DU_SITE")]
        public ActionResult Index()
        {
            return ProcessPage();
        }
    }
}
