Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using Application.Utils.Constants.Validation;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Application.DTOs.Season.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Request model for creating a new season.
|
||||
/// </summary>
|
||||
public class CreateSeasonRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// The display name of the season.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "The Name field is required.")]
|
||||
[MaxLength(SeasonFieldLengths.NameMaxLength)]
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The calendar year the season is played in; optional.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Application.Utils.Constants.Validation;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Application.DTOs.Season.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Request model for updating an existing season.
|
||||
/// </summary>
|
||||
public class UpdateSeasonRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// The display name of the season.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "The Name field is required.")]
|
||||
[MaxLength(SeasonFieldLengths.NameMaxLength)]
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The calendar year the season is played in; optional.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user