using Microsoft.AspNetCore.Mvc; using SentenceConverterModule.Services.Contracts; namespace SentenceConverterModule.Controllers { [Route("modules")] public class ModuleController : Controller { private readonly ISentenceConverterService _converterService; public ModuleController(ISentenceConverterService converterService) { _converterService = converterService; } [HttpGet("sentence-converter")] public async Task SentenceConverter([FromQuery] string language = "pt") { var config = _converterService.GetConfiguration(language); ViewBag.Config = config; ViewBag.Language = language; return PartialView("_SentenceConverterModule"); } [HttpGet("footer-message")] public IActionResult FooterMessage() { return Content(@"
Módulo Carregado!

Este conteúdo veio de um projeto separado!

", "text/html"); } } }