public async Task Update(Permit permit) { try { await db.Permit.ReplaceOneAsync(filter : g => g.id == permit.id, replacement : permit); } catch { throw new NotImplementedException(); } }
public async Task Add(Permit permit) { try { await db.Permit.InsertOneAsync(permit); } catch { throw new NotImplementedException(); } }