Files
FA_WEB/FaKrosnoApi/Controllers/WzClientController.cs
Piotr Kus da1eae8ca9 * Added new Controllers to API
* Added methods to get WZs for specific client
2025-05-08 20:44:20 +02:00

17 lines
461 B
C#

using Microsoft.AspNetCore.Mvc;
using SytelineSaAppEfDataModel.Dtos;
using SytelineSaAppEfDataModel.Services;
namespace FaKrosnoApi.Controllers;
[ApiController]
[Route("api/[controller]")]
public class WzClientController(IWzClientService service) : Controller
{
[HttpGet]
public async Task<ActionResult<IEnumerable<WzClientDto>>> GetAll()
{
IEnumerable<WzClientDto> wzClients = await service.GetAll();
return Ok(wzClients);
}
}