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

namespace OnlyOneAccessTemplate.Controllers
{

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

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

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

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

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