diff --git a/Aspnet/Controllers/ContratoController.cs b/Aspnet/Controllers/ContratoController.cs new file mode 100644 index 0000000..2ee6664 --- /dev/null +++ b/Aspnet/Controllers/ContratoController.cs @@ -0,0 +1,14 @@ +using Microsoft.AspNetCore.Mvc; +using Modelo; +namespace AlquilaFacil.Controllers; + +[ApiController] +public class ContratoController: ControllerBase { + + [HttpGet("api/contratos")] + public IActionResult ObtenerContratosPorUsuario([FromHeader(Name="Auth")]string Auth) { + return Ok(); + } + + +} \ No newline at end of file diff --git a/Entidades/Dto/CrearContratoDto.cs b/Entidades/Dto/CrearContratoDto.cs new file mode 100644 index 0000000..065237e --- /dev/null +++ b/Entidades/Dto/CrearContratoDto.cs @@ -0,0 +1,7 @@ +namespace Entidades.Dto; + +public class CrearContratoDto { + public int Meses {get; set;} + public int Idpropiedad {get; set;} + +} \ No newline at end of file