public List <FCCxCMaestro> DATOS_SelectAll() { try { //obtener el resultado del procedimiento var resTemp1 = bd.pr_FCCxCMaestro_SeleccionarTodos(new ObjectParameter("iCodError", "0")).ToList(); //TODO: convertir List <FCCxCMaestro> res = new List <FCCxCMaestro>(); foreach (var r in resTemp1) { FCCxCMaestro n = new FCCxCMaestro() { IdCuenta = r.IdCuenta, IdAuxiliar = r.IdAuxiliar, IdBoS = r.IdBoS, Cantidad = r.Cantidad, TipMovimiento = r.TipMovimiento, IdSocio = r.IdSocio, FecRegistro = r.FecRegistro, FecInicioMorosidad = r.FecInicioMorosidad, FecExpiracion = r.FecExpiracion, IdEstado = r.IdEstado, }; res.Add(n); } return(res); } catch (Exception ex) { var msgError = ex.Message; } return(null); }