public void Perfil_Eliminar(int idPerfil, int idUsuarioModificar) { ////using (dmIntranetDataContext dci = new dmIntranetDataContext(ConfigurationManager.ConnectionStrings["genesys"].ConnectionString)) using (dmIntranetDataContext dci = new dmIntranetDataContext(GS.configuration.Init.GetValue(Constant.sistema, Constant.key, "genesys"))) { try { dci.Perfil_Eliminar(idPerfil, idUsuarioModificar); } catch (Exception ex) { dci.Excepcion_Registrar(ex.Message, ex.TargetSite.Name); throw ex; } finally { dci.SubmitChanges(); } } }