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,14 @@
using System;
namespace Application.DTOs.Abstract.Response;
/// <summary>
/// Base response class containing common properties for responses.
/// </summary>
public class BaseEntityResponse
{
/// <summary>
/// The unique identifier of the entity.
/// </summary>
public required Guid Id { get; set; }
}
@@ -0,0 +1,31 @@
using System.Collections.Generic;
namespace Application.DTOs.Abstract.Response;
/// <summary>
/// A page of results together with the metadata needed to fetch adjacent pages.
/// </summary>
/// <typeparam name="T">The type of item contained in the page.</typeparam>
public class PaginatedResponse<T>
{
/// <summary>
/// The items in the collection.
/// </summary>
public IEnumerable<T> Items { get; set; } = [];
/// <summary>
/// The current page number.
/// </summary>
public required int Page { get; set; }
/// <summary>
/// The number of items in a page.
/// </summary>
public required int PageSize { get; set; }
/// <summary>
/// The total number of items in the collection.
/// </summary>
public required int TotalCount { get; set; }
}