public bool Add(NuGetSource source) { if (SourceList.Any(m => m.Url == source.Url)) { return(false); } SourceList.Add(source); return(true); }
public void AddOrUpdateSource(NuGetSource source) { Sources.RemoveAll(m => m.Url == source.Url); Sources.Add(source); }