Files
SteUP_Dotnet/SteUp.Shared/Core/Data/SteupDataService.cs
2026-02-12 10:43:16 +01:00

25 lines
679 B
C#

using IntegryApiClient.Core.Domain.Abstraction.Contracts.Account;
using SteUp.Shared.Core.Data.Contracts;
using SteUp.Shared.Core.Dto;
using SteUp.Shared.Core.Interface.IntegryApi;
namespace SteUp.Shared.Core.Data;
public class SteupDataService(
IIntegrySteupService integrySteupService,
IUserSession userSession) : ISteupDataService
{
public Task Init()
{
return LoadDataAsync();
}
private async Task LoadDataAsync()
{
if (!await userSession.IsLoggedIn()) return;
PuntiVenditaList = await integrySteupService.RetrievePuntiVendita();
}
public List<PuntoVenditaDto> PuntiVenditaList { get; private set; } = [];
}