using DbFirst.BlazorWebApp.Models;
using DbFirst.Contracts.MassData;

namespace DbFirst.BlazorWebApp.Services
{
    public interface IMassDataApiClient
    {
        Task<int> GetCountAsync(CancellationToken ct = default);
        Task<List<MassDataReadDto>> GetAllAsync(int? skip, int? take, CancellationToken ct = default);
        Task<ApiResult<MassDataReadDto?>> UpsertAsync(MassDataWriteDto dto, CancellationToken ct = default);
        Task<MassDataReadDto?> GetByCustomerNameAsync(string customerName, CancellationToken ct = default);
    }
}
