19 lines
760 B
C#
19 lines
760 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 IPlayerRepository
|
|
{
|
|
Task<List<Person>> GetAllAsync(bool includeExpenses = false, CancellationToken cancellationToken = default);
|
|
Task<Person?> GetByIdAsync(int id, bool includeExpenses = false, CancellationToken cancellationToken = default);
|
|
Task<Person> CreateAsync(Person item, CancellationToken cancellationToken = default);
|
|
Task<Person> UpdateAsync(Person item, CancellationToken cancellationToken = default);
|
|
Task<bool> DeleteAsync(Guid personId, CancellationToken cancellationToken = default);
|
|
}
|
|
}
|