shoc-backend/SeaHaven.Services/Interfaces/ICalendarService.cs
2026-07-24 10:27:35 -03:00

14 lines
740 B
C#

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);
}
}