Add project
This commit is contained in:
10
Common/Dtos/Season/SeasonDto.cs
Normal file
10
Common/Dtos/Season/SeasonDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Common.Dtos.Season;
|
||||
|
||||
public class SeasonDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public DateOnly StartDate { get; set; }
|
||||
public DateOnly EndDate { get; set; }
|
||||
public bool IsCurrent => StartDate <= DateOnly.FromDateTime(DateTime.Now) && EndDate >= DateOnly.FromDateTime(DateTime.Now);
|
||||
}
|
||||
Reference in New Issue
Block a user