eliiminado codigo muerto
This commit is contained in:
@@ -97,21 +97,6 @@ public class VentaController : ControllerBase
|
|||||||
Ok(new { message = "Se Envio una notificacion" }) : BadRequest(new { message = "Fallo al Descartar Consulta" });
|
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")]
|
[HttpPut("/api/propiedad/setPropiedadAVenta")]
|
||||||
public IActionResult setPropiedadAVenta([FromHeader(Name = "Auth")] string Auth, SetVentaDto dto)
|
public IActionResult setPropiedadAVenta([FromHeader(Name = "Auth")] string Auth, SetVentaDto dto)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user