Major update
This commit is contained in:
11
sports/Queries/GetSportByIdQuery.cs
Normal file
11
sports/Queries/GetSportByIdQuery.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using MediatR;
|
||||
using Sports.Entities;
|
||||
|
||||
namespace Sports.Queries
|
||||
{
|
||||
public record GetSportByIdQuery : IRequest<Sport>
|
||||
{
|
||||
public int SportId { get; set; }
|
||||
}
|
||||
}
|
||||
14
sports/Queries/GetSportsQuery.cs
Normal file
14
sports/Queries/GetSportsQuery.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using MediatR;
|
||||
using Sports.Entities;
|
||||
using Sports.Helpers;
|
||||
|
||||
namespace Sports.Queries
|
||||
{
|
||||
public record GetSportsQuery : IRequest<PagedList<Sport>>
|
||||
{
|
||||
public int PageNumber { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user