Major update
This commit is contained in:
11
games/Queries/GetGameByIdQuery.cs
Normal file
11
games/Queries/GetGameByIdQuery.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using Games.Entities;
|
||||
using MediatR;
|
||||
|
||||
namespace Games.Queries
|
||||
{
|
||||
public record GetGameByIdQuery : IRequest<Game>
|
||||
{
|
||||
public int GameId { get; set; }
|
||||
}
|
||||
}
|
||||
13
games/Queries/GetGamesQuery.cs
Normal file
13
games/Queries/GetGamesQuery.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using Games.Entities;
|
||||
using Games.Helpers;
|
||||
using MediatR;
|
||||
|
||||
namespace Games.Queries
|
||||
{
|
||||
public record GetGamesQuery : IRequest<PagedList<Game>>
|
||||
{
|
||||
public int PageNumber { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user