public void DeleteSource(int sourceId) { _sourceRepository.DeleteSource(sourceId); Sources.Remove(Sources.First(source => source.Id == sourceId)); }