public List<TransaccionEntidad> ObtenerTransaccionesDevoluciones(string tipoOperacion, DateTime fechaCicloIni, DateTime fechaCicloFin, int? codigoMoneda, int? codigoServicio, string modalidad, string entidad, string sortExpression) { try { Pagos acceso = new Pagos(); PC_ReporteDevoluciones.PC_ReporteDevolucionesDataTable datos = acceso.ReporteDEvoluciones(tipoOperacion, fechaCicloIni, fechaCicloFin, modalidad, codigoServicio, codigoMoneda, entidad, System.Web.HttpContext.Current.User.Identity.Name, System.Web.HttpContext.Current.Request.UserHostAddress); List<TransaccionEntidad> transaccionesEntidades = null; if (datos != null && datos.Count > 0 && datos.Rows.Count > 0) { transaccionesEntidades = (from PC_ReporteDevoluciones.PC_ReporteDevolucionesRow row in datos.Rows select new TransaccionEntidad { NombreBanco = row.NombreBanco, NombreMoneda = row.NombreMoneda, NombreServicio = row.NombreServicio, NumeroTransaccion = row.NumeroTransaccion, CedulaPersona = row.CedulaPersona, DescripcionGen = row.DescripcionGen, EstadoEnvioSinpe = row.EstadoEnvioSinpe, FechaCiclo = row.FechaCiclo, Monto = row.Monto, EstadoTran = (EnumEstadosTransaccionCGP)row.EstadoTran[0], NumeroEnvio = row.NumeroEnvio, TipoOperacion = row.TipoOperacion, NombrePersona = row.NombrePersona, NumeroDocumento = row.NumeroDocumento, NombreConcepto = row.NombreConcepto, DescMotivoRechazo = row.DescMotivoRechazo, CodMotivoRechazo = row.CodMotivoRechazo, AbreviaturaBanco = row.AbreviaturaBanco, CuentaClienteOrigen = row.CuentaClienteOrigen, CedulaClienteOrigen = row.CedulaClienteOrigen, CuentaCliente = row.CuentaCliente, NombreCanal = row.NombreCanal }).ToList(); } return transaccionesEntidades; } catch (Exception) { throw; } }