Add project
This commit is contained in:
8
Common/Dtos/Season/CreateSeasonRequest.cs
Normal file
8
Common/Dtos/Season/CreateSeasonRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Common.Dtos.Season;
|
||||
|
||||
public class CreateSeasonRequest
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public DateOnly StartDate { get; set; }
|
||||
public DateOnly EndDate { get; set; }
|
||||
}
|
||||
8
Common/Dtos/Season/CreateSeasonResponse.cs
Normal file
8
Common/Dtos/Season/CreateSeasonResponse.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Common.Dtos.Common;
|
||||
|
||||
namespace Common.Dtos.Season;
|
||||
|
||||
public class CreateSeasonResponse : BaseResponse
|
||||
{
|
||||
public string? CreateSeasonResult { get; set; }
|
||||
}
|
||||
9
Common/Dtos/Season/GetSeasonsRequest.cs
Normal file
9
Common/Dtos/Season/GetSeasonsRequest.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Common.Dtos.Common;
|
||||
|
||||
namespace Common.Dtos.Season;
|
||||
|
||||
public class GetSeasonsRequest : PagedRequest
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public bool? HideObsolete { get; set; }
|
||||
}
|
||||
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