/// <summary> /// Adds the specified procedure. /// </summary> /// <param name="procedure">The procedure.</param> /// <returns></returns> public async Task Add(ProcedureQueryDto procedure) { await this.Collection.InsertOneAsync(procedure); }
/// <summary> /// Updates the specified procedure. /// </summary> /// <param name="procedure">The procedure.</param> /// <returns></returns> public async Task Update(ProcedureQueryDto procedure) { await this.Collection.ReplaceOneAsync(p => p.Id == procedure.Id, procedure); }