17 lines
461 B
C#
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);
|
|
}
|
|
} |