mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-06 13:00:55 +00:00
asdfasfd
This commit is contained in:
1 parent
4fbc39ca77
commit
568f360548
95 files changed
+3901
-4443
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using CartriX.Api.Interfaces;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace CartriX.Api.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class ArticleController : ControllerBase
|
||||
{
|
||||
private readonly IArticleService _articleService;
|
||||
public ArticleController(IArticleService articleService)
|
||||
{
|
||||
_articleService = articleService;
|
||||
}
|
||||
[HttpGet("ListArticlesByName")]
|
||||
public async Task<IActionResult> GetListArticlesByModelName([FromQuery]string NameModel) => Ok(await _articleService.GetListArticlesByModelNameAsync(NameModel));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user