Files
website/Services/IGameService.cs
T

15 lines
463 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);
}