public IList<InmuebleDTO> getInmuebles(int IdCliente, bool AsSelectList = false) { ClienteBL oBL = new ClienteBL(); if (!AsSelectList) return oBL.getInmuebles(IdCliente); else { var lista = oBL.getInmuebles(IdCliente); lista.Insert(0, new InmuebleDTO() { IdInmueble = 0, NombreInmueble = "Seleccione un Inmueble" }); return lista; } }
public IList<ClienteDTO> getComboClientes() { ClienteBL oBL = new ClienteBL(); var lista = oBL.getComboClientes(); lista.Insert(0, new ClienteDTO() { IdCliente = 0, NombreEmpresa = "Seleccione un Cliente" }); return lista; }
public IList<EstadoDTO> getEstados(int IdServicio, bool AsSelectList = false) { ClienteBL oBL = new ClienteBL(); if (!AsSelectList) return oBL.getEstados(IdServicio); else { var lista = oBL.getEstados(IdServicio); lista.Insert(0, new EstadoDTO() { IdEstado = 0, NombreEstado = "Seleccione un Estado" }); return lista; } }
public IList<ClienteDTO> getClientes(bool AsSelectList = false) { ClienteBL oBL = new ClienteBL(); if (!AsSelectList) return oBL.getClientes(); else { var lista = oBL.getClientes(); lista.Insert(0, new ClienteDTO() { IdCliente = 0, NombreEmpresa = "Seleccione un Cliente" }); return lista; } }