Files
website/Services/IGameService.cs
T
2026-07-13 21:07:08 -04:00

16 lines
489 B
C#

using Phenix.Models;
namespace Phenix.Services;
public interface IGameService
{
Task Init();
Task<List<Game>> GetAllGames();
Task<Game?> GetGameById(string id);
Task<(Game? Game, string Error)> CreateNewGame(string date, string time, string home, string away);
Task<bool> UpdateGame(string id, int? homeScore, int? awayScore, bool? rain, bool? practice);
Task<bool> DeleteGameById(string id);
Task<bool> SwitchVisitors(string id);
Task ClearAllGames();
}