public async Task Update(Jasenet jasenet) { try { await db.Jasenet.ReplaceOneAsync(filter : g => g.Id == jasenet.Id, replacement : jasenet); } catch (Exception) { throw; } }
public async Task Add(Jasenet jasenet) { try { await db.Jasenet.InsertOneAsync(jasenet); } catch (Exception) { throw; } }