public up_Obtener_PeriodoActualResult obtenerPeriodoActual() { SSIA2013DataContext dataContext = null; try { dataContext = new SSIA2013DataContext(ConfigurationManager.ConnectionStrings["CSSSIA2013"].ToString()); up_Obtener_PeriodoActualResult periodo = dataContext.up_Obtener_PeriodoActual().SingleOrDefault(); return periodo; } catch (Exception ex) { throw ex; } finally { if (dataContext != null) { dataContext.Dispose(); } } }