18 lines
486 B
C#
18 lines
486 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using ProximaContracts.Application.Rates.Services;
|
|
|
|
namespace ProximaContracts.API.Controllers
|
|
{
|
|
[Route("api/[controller]")]
|
|
[ApiController]
|
|
public class RatesController(IRateService service) : ControllerBase
|
|
{
|
|
private readonly IRateService _service = service;
|
|
[HttpGet("GetAllRates")]
|
|
public async Task<IActionResult> GetAllRates()
|
|
{
|
|
return Ok(await _service.GetRates());
|
|
}
|
|
}
|
|
}
|