using global::OnlyOneAccessTemplate.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using OnlyOneAccessTemplate.Services;

namespace OnlyOneAccessTemplate.Controllers
{

    [Route("en")]
    public class EnController : HomeController
    {
        public EnController(
            ISiteConfigurationService siteConfig,
            ILanguageService languageService,
            ISeoService seoService,
            IMemoryCache cache,
            IConfiguration configuration)
            : base(siteConfig, languageService, seoService, cache, configuration)
        {
        }

        protected override string GetCurrentLanguage() => "en";

        [Route("")]
        [Route("home")]
        public new async Task<IActionResult> Index()
        {
            return await base.Index();
        }

        [Route("about")]
        public new async Task<IActionResult> About()
        {
            return await base.About();
        }

        [Route("contact")]
        public new async Task<IActionResult> Contact()
        {
            return await base.Contact();
        }
    }
}
