46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Caching.Memory;
|
|
using OnlyOneAccessTemplate.Models;
|
|
using OnlyOneAccessTemplate.Services;
|
|
|
|
namespace OnlyOneAccessTemplate.Controllers
|
|
{
|
|
[Route("es")]
|
|
public class EsController : BaseController
|
|
{
|
|
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 IActionResult Index()
|
|
{
|
|
var siteConfig = _siteConfig.GetConfiguration("es");
|
|
ViewBag.PageTitle = siteConfig.SiteTitle;
|
|
ViewBag.PageDescription = siteConfig.SiteDescription;
|
|
|
|
return View("~/Views/Home/Index.cshtml", siteConfig);
|
|
}
|
|
|
|
[Route("convertir-pdf-a-word-en-linea")]
|
|
public IActionResult ConvertirPdfAWordEnLinea()
|
|
{
|
|
var siteConfig = _siteConfig.GetConfiguration("es");
|
|
|
|
SetPageSeo("Convertir PDF a Word en Línea Gratis",
|
|
"Convierte tus archivos PDF a Word rápidamente y gratis...");
|
|
|
|
return View("~/Views/Home/Index.cshtml", siteConfig);
|
|
}
|
|
}
|
|
}
|