15 lines
392 B
C#
15 lines
392 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|