コード例 #1
0
 public async Task Update(Permit permit)
 {
     try
     {
         await db.Permit.ReplaceOneAsync(filter : g => g.id == permit.id, replacement : permit);
     }
     catch
     {
         throw new NotImplementedException();
     }
 }
コード例 #2
0
 public async Task Add(Permit permit)
 {
     try
     {
         await db.Permit.InsertOneAsync(permit);
     }
     catch
     {
         throw new NotImplementedException();
     }
 }