last ...
This commit is contained in:
@@ -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<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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user