21 lines
895 B
C#
21 lines
895 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Koogle.Domain.Entities;
|
|
|
|
namespace Koogle.Domain.Interfaces
|
|
{
|
|
public interface IDayRepository
|
|
{
|
|
Task<List<Day>> GetAllAsync(Guid yearId, Guid clubId, CancellationToken cancellationToken = default);
|
|
Task<List<Day>> GetByClubIdAsync(Guid clubId, CancellationToken cancellationToken = default);
|
|
Task<Day?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
|
|
Task<Day?> GetActiveDayAsync(Guid clubId, CancellationToken cancellationToken = default);
|
|
Task<Day> AddAsync(Day day, CancellationToken cancellationToken = default);
|
|
Task<Day> UpdateAsync(Day day, CancellationToken cancellationToken = default);
|
|
Task<bool> DeleteAsync(Guid id, CancellationToken cancellationToken = default);
|
|
}
|
|
}
|