Beispiel #1
0
 public Task UpdateWinePurchaseAsync(string id, WinePurchase winePurchaseIn)
 {
     throw new NotImplementedException();
 }
 public async Task UpdateWinePurchaseAsync(string id, WinePurchase winePurchaseIn) =>
 await _winepurchases.ReplaceOneAsync(wp => wp.Id == id, winePurchaseIn).ConfigureAwait(false);
Beispiel #3
0
 public Task <WinePurchase> CreateWinePurchaseAsync(WinePurchase winePurchase)
 {
     throw new NotImplementedException();
 }
        public async Task <WinePurchase> CreateWinePurchaseAsync(WinePurchase winePurchase)
        {
            await _winepurchases.InsertOneAsync(winePurchase).ConfigureAwait(false);

            return(winePurchase);
        }