mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 04:53:11 +00:00
15 lines
760 B
C#
15 lines
760 B
C#
|
|
using Data.SeaHavenIndustries;
|
||
|
|
|
||
|
|
namespace SeaHaven.DataServices.Interfaces
|
||
|
|
{
|
||
|
|
public interface ICalendarDataService
|
||
|
|
{
|
||
|
|
Task<Events?> GetEventByIdAsync(int id, CancellationToken cancellationToken);
|
||
|
|
Task<Events?> GetEventForEditAsync(int id, CancellationToken cancellationToken);
|
||
|
|
Task<Events> AddEventAsync(Events ev, CancellationToken cancellationToken);
|
||
|
|
Task UpdateEventAsync(Events ev, CancellationToken cancellationToken);
|
||
|
|
Task<(IEnumerable<Events> Items, int TotalCount)> GetEventListPagedAsync(int page, int pageSize, string? search, CancellationToken cancellationToken);
|
||
|
|
Task<IEnumerable<Events>> GetEventsForCalendarAsync(DateTime? start, DateTime? end, CancellationToken cancellationToken);
|
||
|
|
}
|
||
|
|
}
|