18 lines
482 B
C#
18 lines
482 B
C#
using Solicitors.Core.Data;
|
|
|
|
namespace Solicitors.Core;
|
|
|
|
internal class RatingsProviderService : IRatingsProviderService
|
|
{
|
|
private readonly IRatingsProviderRepository _repo;
|
|
|
|
public RatingsProviderService(IRatingsProviderRepository repo)
|
|
{
|
|
_repo = repo;
|
|
}
|
|
|
|
public async Task<string[]> GetRatingsProvidersAsync(CancellationToken cancellationToken)
|
|
{
|
|
return await _repo.GetAllRatingsProvidersAsync().ToArrayAsync(cancellationToken);
|
|
}
|
|
} |