GameLibrary/Repositories/IGameRepository.cs

15 lines
392 B
C#
Raw Normal View History

2024-10-03 14:22:21 +05:00
using GameLibrary.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace GameLibrary.Repositories
{
public interface IGameRepository
{
Task<IEnumerable<Game>> GetAllGames(string genre = null);
Task<Game> GetGameById(int id);
Task CreateGame(Game game);
Task UpdateGame(Game game);
Task DeleteGame(int id);
}
}