17 lines
483 B
C#
17 lines
483 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using SytelineSaAppEfDataModel.Dtos;
|
|
using SytelineSaAppEfDataModel.Services;
|
|
|
|
namespace FaKrosnoApi.Controllers;
|
|
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public class CustomerTpController(ICustomerTpService service) : Controller
|
|
{
|
|
[HttpGet]
|
|
public async Task<ActionResult<IEnumerable<CustomerTpDto>>> GetAllCustomers()
|
|
{
|
|
IList<CustomerTpDto> customers = await service.GetAllCustomersTp();
|
|
return Ok(customers);
|
|
}
|
|
} |