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>> GetAll() { IEnumerable wzClients = await service.GetAll(); return Ok(wzClients); } [HttpGet("by-id")] public async Task> GetById(Guid id) { WzClientDto? wzClient = await service.GetById(id); return Ok(wzClient); } }