public async Task UpdateAsync(string id, EnteredInvoice enteredInvoiceIn) => await _enteredInvoices.ReplaceOneAsync(enteredInvoice => enteredInvoice.Id == id, enteredInvoiceIn);
public async Task <EnteredInvoice> CreateAsync(EnteredInvoice enteredInvoice) { await _enteredInvoices.InsertOneAsync(enteredInvoice); return(enteredInvoice); }