public void getProgramadorCartaEstadoOIqx(int id) { SelectViewModel select = new SelectViewModel(); this.quirurgicaModel = new OIQuirurgicaModel(); IOrdenIQxService _service = new OrdenIQxService(); var oiq = _service.getCartaOrden(id); this.quirurgicaModel = DTOToModel.getCartaOIQx(oiq); if (oiq.cirugias != null) { this.quirurgicaModel.Procedimientos = DTOToModel.filtroModel(oiq.cirugias); } this.lstPreQx = new List <ListaPreQx>(); ICartaGarantiaService _servicepreqx = new CartaGarantiaService(); var pre = _servicepreqx.preqxXcarta(id); if (pre.Count > 0) { this.lstPreQx = DTOToModel.listarPreQx(pre); } }