Primera subida
This commit is contained in:
10
back/Entities/DTOs/Request/CasaRequestDto.cs
Normal file
10
back/Entities/DTOs/Request/CasaRequestDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class CasaRequestDto
|
||||
{
|
||||
public int PersonaId { get; set; }
|
||||
public string NombreCasa { get; set; } = string.Empty;
|
||||
public int NumeroHabitaciones { get; set; }
|
||||
public DireccionRequestDto? Direction { get; set; }
|
||||
}
|
||||
}
|
||||
10
back/Entities/DTOs/Request/CasaUpdateRequestDto.cs
Normal file
10
back/Entities/DTOs/Request/CasaUpdateRequestDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class CasaUpdateRequestDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string NombreCasa { get; set; } = string.Empty;
|
||||
public int NumeroHabitaciones { get; set; }
|
||||
public DireccionUpdateRequestDto? Direccion { get; set; }
|
||||
}
|
||||
}
|
||||
10
back/Entities/DTOs/Request/CasaWitDirecctionRequestDto.cs
Normal file
10
back/Entities/DTOs/Request/CasaWitDirecctionRequestDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class CasaWitDirecctionRequestDto
|
||||
{
|
||||
public string NombreCasa { get; set; } = string.Empty;
|
||||
public int NumeroHabitaciones { get; set; }
|
||||
public DireccionRequestDto Direction { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
8
back/Entities/DTOs/Request/DireccionRequestDto.cs
Normal file
8
back/Entities/DTOs/Request/DireccionRequestDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class DireccionRequestDto
|
||||
{
|
||||
public string Calle { get; set; } = string.Empty;
|
||||
public int? Numero { get; set; }
|
||||
}
|
||||
}
|
||||
9
back/Entities/DTOs/Request/DireccionUpdateRequestDto.cs
Normal file
9
back/Entities/DTOs/Request/DireccionUpdateRequestDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class DireccionUpdateRequestDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Calle { get; set; } = string.Empty;
|
||||
public int? Numero { get; set; }
|
||||
}
|
||||
}
|
||||
8
back/Entities/DTOs/Request/PersonaRequestDto.cs
Normal file
8
back/Entities/DTOs/Request/PersonaRequestDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class PersonaRequestDto
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
9
back/Entities/DTOs/Request/PersonaUpdateRequestDto.cs
Normal file
9
back/Entities/DTOs/Request/PersonaUpdateRequestDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace back.Entities.DTOs.Request
|
||||
{
|
||||
public class PersonaUpdateRequestDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
9
back/Entities/DTOs/Response/IWantItAll.cs
Normal file
9
back/Entities/DTOs/Response/IWantItAll.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace back.Entities.DTOs.Response
|
||||
{
|
||||
public class IWantItAll
|
||||
{
|
||||
public List<Persona> Personas { get; set; }
|
||||
public List<Casa> Casas { get; set; }
|
||||
public List<Direccion> Direcciones { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user