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);
public Task <WinePurchase> CreateWinePurchaseAsync(WinePurchase winePurchase) { throw new NotImplementedException(); }
public async Task <WinePurchase> CreateWinePurchaseAsync(WinePurchase winePurchase) { await _winepurchases.InsertOneAsync(winePurchase).ConfigureAwait(false); return(winePurchase); }