Beispiel #1
0
        public async Task AddSeries(string authorId, AddSeriesRequest request)
        {
            var series = _articleFactory.CreateSeries(authorId, request.Title, request.Description);

            await _context.ArticleSeries.AddAsync(series).ConfigureAwait(false);

            await _context.SaveChangesAsync().ConfigureAwait(false);
        }
Beispiel #2
0
 public async Task AddSeries(string author, AddSeriesRequest request)
 {
     var series = _articleFactory.CreateSeries(author, request.Title, request.Description);
     await _client.ArticleSeries().InsertOneAsync(series).CAF();
 }