Chronozoom.Entities.Storage.DeletePrefix C# (CSharp) Метод

DeletePrefix() публичный Метод

Delete prefix and associated namespace with it.
public DeletePrefix ( string prefixStr, string fullStr ) : bool
prefixStr string Prefix
fullStr string Namespace
Результат bool
        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;
        }