示例#1
0
 public async Task UpdateAsync(string id, EnteredInvoice enteredInvoiceIn) =>
 await _enteredInvoices.ReplaceOneAsync(enteredInvoice => enteredInvoice.Id == id, enteredInvoiceIn);
示例#2
0
        public async Task <EnteredInvoice> CreateAsync(EnteredInvoice enteredInvoice)
        {
            await _enteredInvoices.InsertOneAsync(enteredInvoice);

            return(enteredInvoice);
        }