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 GetAllRates() { return Ok(await _service.GetRates()); } } }