20 lines
712 B
C#
20 lines
712 B
C#
using ROLAC.API.DTOs.Giving;
|
|
using ROLAC.API.DTOs.Shared;
|
|
|
|
namespace ROLAC.API.Services;
|
|
|
|
public interface IOfferingSessionService
|
|
{
|
|
Task<PagedResult<OfferingSessionListItemDto>> GetPagedAsync(
|
|
int page, int pageSize, DateOnly? from, DateOnly? to);
|
|
Task<OfferingSessionDto?> GetByIdAsync(int id);
|
|
Task<bool> DateExistsAsync(DateOnly date);
|
|
Task<int> CreateAsync(CreateOfferingSessionRequest request);
|
|
Task ReopenAsync(int id);
|
|
Task ReplaceAsync(int id, CreateOfferingSessionRequest request);
|
|
|
|
Task SaveProofAsync(int id, Stream content, string fileName);
|
|
Task<(Stream stream, string contentType)?> OpenProofAsync(int id);
|
|
Task DeleteProofAsync(int id);
|
|
}
|