From 779ab9b982c657b0ce30dfa15c22eb32a0319f68 Mon Sep 17 00:00:00 2001 From: fede Date: Thu, 22 May 2025 15:41:46 -0300 Subject: [PATCH] eliiminado codigo muerto --- Aspnet/Controllers/VentaController.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Aspnet/Controllers/VentaController.cs b/Aspnet/Controllers/VentaController.cs index a7e91f9..769c933 100644 --- a/Aspnet/Controllers/VentaController.cs +++ b/Aspnet/Controllers/VentaController.cs @@ -97,21 +97,6 @@ public class VentaController : ControllerBase Ok(new { message = "Se Envio una notificacion" }) : BadRequest(new { message = "Fallo al Descartar Consulta" }); } - [HttpGet("/api/propiedad/EstaALaVenta")] //Creo que esto es codigo muerto - public IActionResult EstaALaVenta([FromHeader(Name = "Auth")] string Auth, int idprop = 0) - { - var validacion1 = RepositorioGrupos.Singleton.CheckGrupos(Auth, "Propietario"); - if (validacion1 == false) - { - return Unauthorized(); - } - if (idprop <= 0) return BadRequest(new { message = "No hay propiedades con id 0 o menor" }); - - Propiedade? prop = RepositorioPropiedades.Singleton.ObtenerPropiedadPorId(idprop); - if (prop == null) return BadRequest(new { message = "No hay propiedades por ese id" }); - return Ok(new { EstaAVenta = prop.Idestado == 4 ? true : false }); - } - [HttpPut("/api/propiedad/setPropiedadAVenta")] public IActionResult setPropiedadAVenta([FromHeader(Name = "Auth")] string Auth, SetVentaDto dto) {