Files
xSaherElmApi/Controllers/TestFeaturesController.cs
T
2026-05-30 00:41:27 +03:30

43 lines
1.2 KiB
C#

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<TestFeaturesController> logger,
XAppConfiguration appConfiguration,
XValidationProvider validationProvider,
IXSubCategoryTitleResourceProvider subCategoryTitleResourceProvider
) : base(
logger,
appConfiguration,
validationProvider
)
{
this.subCategoryTitleResourceProvider = subCategoryTitleResourceProvider;
}
[HttpGet]
public async Task<ActionResult> TestFeature()
{
//
var result = await subCategoryTitleResourceProvider.GetLanguages(
identifier: "SSSSAAALLLAAAM"
);
//
return Ok(result);
}
}
}