public static EstructuraListaReferencia CrearListaReferenciaDTO(int id, IEnumerable <MensajeDtoMapper> listaMensajes) { EstructuraListaReferencia ec = new EstructuraListaReferencia(); ec.IdCampo = id; MensajeDto mensaje = EstructuraMensaje.BuscarMensajePorAtributo(id, listaMensajes); ec.EstadoCampo = mensaje.Estado; ec.ObservacionesCampo = mensaje.Observaciones; return(ec); }
public static void CrearElementoListaReferenciaDTO(EstructuraListaReferencia lista, Int32 id, String descripcion) { if (null != lista && null != descripcion) { ParametricasBdReferencia Elemento = new ParametricasBdReferencia() { Id = id, Descripcion = descripcion }; lista.Valor.Add(Elemento); //lista.ValorEspejo.Add(Elemento); } }
public static IEnumerable <UbicacionGeograficaDtoMapper> ExtraerListaUbicacionDTO(EstructuraListaReferencia listaReferencia, int?nroPoliza) { List <UbicacionGeograficaDtoMapper> valor = new List <UbicacionGeograficaDtoMapper>(); if (null != listaReferencia) { foreach (var lis in listaReferencia.Valor) { UbicacionGeograficaDtoMapper elemento = new UbicacionGeograficaDtoMapper(); elemento.ID_UBICACIONGEOGRAFICA = lis.Id; elemento.NOMBRE_UBICACIONGEOGRAFICA = lis.Descripcion; elemento.NRO_POLIZA = nroPoliza; valor.Add(elemento); } } return(valor); }