23 lines
597 B
C#
23 lines
597 B
C#
using System.Net.Http.Json;
|
|
using TIAM.Entities.TransferDestinations;
|
|
using TIAMWebApp.Shared.Application.Interfaces;
|
|
using TIAMWebApp.Shared.Application.Models;
|
|
|
|
namespace TIAMWebApp.Client.Services
|
|
{
|
|
public class TransferDataService : ITransferDataService
|
|
{
|
|
private readonly HttpClient http;
|
|
|
|
public TransferDataService(HttpClient http)
|
|
{
|
|
this.http = http;
|
|
}
|
|
|
|
public Task<TransferDestination[]?> GetDestinationsAsync()
|
|
{
|
|
return http.GetFromJsonAsync<TransferDestination[]>("TransferDataAPI");
|
|
}
|
|
}
|
|
}
|