mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 13:32:33 +01:00
d792813cd5
Allows Posts and Comments to both use the IsNew filter with their own implementations.
16 lines
324 B
C#
16 lines
324 B
C#
using System;
|
|
using Sieve.Attributes;
|
|
|
|
namespace SieveUnitTests.Entities
|
|
{
|
|
public class Comment
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[Sieve(CanFilter = true, CanSort = true)]
|
|
public DateTimeOffset DateCreated { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
public string Text { get; set; }
|
|
}
|
|
}
|