Sube carpetas API, API.Tests, Application y Domain del Backend

This commit is contained in:
FrancoRu
2026-09-18 13:35:59 -03:00
parent bbb09554bb
commit 2eb4eeef03
572 changed files with 56405 additions and 0 deletions
@@ -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; }
}