public Int32 resultadoProgramaXMallaEncuestaActualizar(List<ResultadoProgramaXMallaEncuestaDC> lstLR) { SSIA2013DataContext dc = null; try { dc = new SSIA2013DataContext(ConfigurationManager.ConnectionStrings["SSIA2013"].ToString()); int ResultadoProgramaId = -1; for (int i = 0; i < lstLR.Count(); i++) { ResultadoProgramaId = dc.uspResultadoProgramaXMallaEncuesta_ActualizarXMallaEncuesta(lstLR[i].MallaEncuestaId, lstLR[i].ResultadoProgramaId, lstLR[i].Asignado); } return ResultadoProgramaId; } catch (Exception ex) { throw ex; } finally { if (dc != null) { dc.Dispose(); } } }