Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Application.DTOs.Roster.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Request to clone a roster from a previous season's team into a new season's team taken from the route.
|
||||
/// </summary>
|
||||
public class CopyRosterRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// The past-season team whose roster is the source.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public required Guid SourceTeamId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The season the source roster belongs to.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public required Guid SourceTournamentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The new season the roster is cloned into.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public required Guid TargetTournamentId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Application.DTOs.Roster.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Outcome of copying a roster from a previous season into a new season.
|
||||
/// </summary>
|
||||
public class RosterCopyResult
|
||||
{
|
||||
/// <summary>
|
||||
/// New season registrations created on the target team.
|
||||
/// </summary>
|
||||
public required int CopiedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Source players skipped because they were already registered to the target season.
|
||||
/// </summary>
|
||||
public required int SkippedCount { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user