/// <summary> /// Delete prefix and associated namespace with it. /// </summary> /// <param name="prefixStr">Prefix</param> /// <param name="fullStr">Namespace</param> /// <returns>Returns 'True' if operation completed succeful, 'False' otherwise.</returns> public bool DeletePrefix(string prefixStr, string fullStr) { var val = TriplePrefixes.FirstOrDefault(x => x.Prefix == prefixStr && x.Namespace == fullStr); if (val != null) { TriplePrefixes.Remove(val); SaveChanges(); return(true); } return(false); }