public async Task <Collection> AddCollectionAsync(string name, string path, string filter, bool enabled, CancellationToken cancellationToken) { var collection = new Collection { DateAdded = DateTime.UtcNow, Enabled = enabled, Filter = filter, Name = name, Path = path }; await _metadataRepository.AddCollectionAsync(collection, cancellationToken).ConfigureAwait(false); return(collection); }