WebApi + ClientApp, GraphQL, Reflection
This commit is contained in:
12
Events-WebApi/Events.WebAPI.Contract/DTOs/SportDTO.cs
Normal file
12
Events-WebApi/Events.WebAPI.Contract/DTOs/SportDTO.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Sieve.Attributes;
|
||||
|
||||
namespace Events.WebAPI.Contract.DTOs;
|
||||
|
||||
public class SportDTO : IHasIdAsPK<int>
|
||||
{
|
||||
[Sieve(CanSort = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user