Distribution_GL Initialization
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using General_Ledger_Service.DTOs.Common;
|
||||
using General_Ledger_Service.Interfaces.Repositories;
|
||||
using General_Ledger_Service.Interfaces.Services;
|
||||
|
||||
namespace General_Ledger_Service.Services
|
||||
{
|
||||
public class CurrencyService(ICurrencyRepository currencyRepository) : ICurrencyService
|
||||
{
|
||||
private readonly ICurrencyRepository _currencyRepository = currencyRepository;
|
||||
|
||||
public async Task<ApiResponse> ListCurrenciesAsync()
|
||||
{
|
||||
var currencies = await _currencyRepository.GetAllAsync();
|
||||
return ResponseHelpers.Ok("Currencies retrieved successfully", currencies);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user