RemoveItem now returns a bool

This commit is contained in:
Robert
2018-10-10 08:27:20 +02:00
parent 931fcd565a
commit d41251819f

View File

@@ -124,10 +124,11 @@ namespace Umbraco.Core.Models
return this.Any(x => x.Alias == propertyAlias);
}
public void RemoveItem(string propertyTypeAlias)
public bool RemoveItem(string propertyTypeAlias)
{
var key = IndexOfKey(propertyTypeAlias);
if (key != -1) RemoveItem(key);
return key != -1;
}
public int IndexOfKey(string key)