diff --git a/Controllers/TestFeaturesController.cs b/Controllers/TestFeaturesController.cs new file mode 100644 index 0000000..6297a1c --- /dev/null +++ b/Controllers/TestFeaturesController.cs @@ -0,0 +1,43 @@ +using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; +using xCategoryService.Interfaces; +using xCommons.Configurations; +using xCommons.Controllers; +using xCommons.Providers; + +namespace xApi.Controllers +{ + [AllowAnonymous] + public class TestFeaturesController : XBaseApiController + { + private readonly IXSubCategoryTitleResourceProvider subCategoryTitleResourceProvider; + + public TestFeaturesController( + ILogger logger, + XAppConfiguration appConfiguration, + XValidationProvider validationProvider, + IXSubCategoryTitleResourceProvider subCategoryTitleResourceProvider + ) : base( + logger, + appConfiguration, + validationProvider + ) + { + this.subCategoryTitleResourceProvider = subCategoryTitleResourceProvider; + } + + [HttpGet] + public async Task TestFeature() + { + // + var result = await subCategoryTitleResourceProvider.GetLanguages( + identifier: "SSSSAAALLLAAAM" + ); + + // + return Ok(result); + } + } +} \ No newline at end of file