mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
20 lines
540 B
C#
20 lines
540 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace CartriX.Api.Controllers.Manufacturer
|
|
{
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class ManufacturerController(IManufacturerService _service) : ControllerBase
|
|
{
|
|
/// <summary>
|
|
/// Список производителей
|
|
/// </summary>
|
|
[ProducesResponseType(typeof(List<string>),200)]
|
|
[HttpGet(nameof(List))]
|
|
public async Task<ActionResult> List()
|
|
{
|
|
return Ok(await _service.List());
|
|
}
|
|
}
|
|
}
|