using ROLAC.API.DTOs.Giving;
using ROLAC.API.DTOs.Shared;

namespace ROLAC.API.Services;

public interface IGivingService
{
    Task<PagedResult<GivingListItemDto>> GetPagedAsync(
        int page, int pageSize, string? search, int? categoryId, DateOnly? from, DateOnly? to);
    Task<GivingDto?> GetByIdAsync(int id);
    Task<int>        CreateAsync(CreateGivingRequest request);
    Task             UpdateAsync(int id, UpdateGivingRequest request);
    Task             DeleteAsync(int id);
}
