public static int Insert(tblUserGroupPermission userGroupPermission) { var db = new dbEcustomEntities(Common.Decrypt(ConfigurationManager.ConnectionStrings["dbEcustomEntities"].ConnectionString, true)); db.AddTotblUserGroupPermissions(userGroupPermission); int re = db.SaveChanges(); db.Connection.Close(); return re; }