shoc-backend/SeaHaven.Services/Interfaces/ICalendarService.cs

15 lines
740 B
C#
Raw Normal View History

using SeaHaven.Services.DTOs;
namespace SeaHaven.Services.Interfaces
{
public interface ICalendarService
{
Task CreateEventAsync(EditEventInput input, CancellationToken cancellationToken);
Task<bool> UpdateEventAsync(EditEventInput input, CancellationToken cancellationToken);
Task<EventDTO?> GetEventByIdAsync(int id, CancellationToken cancellationToken);
Task<bool> DeleteEventAsync(int id, CancellationToken cancellationToken);
Task<PagedEventsResult> GetEventListAsync(string? search, int page, int pageSize, CancellationToken cancellationToken);
Task<IEnumerable<EventDTO>> GetEventsForCalendarAsync(DateTime? start, DateTime? end, CancellationToken cancellationToken);
}
}