/// <summary> /// Adds the specified trial set query. /// </summary> /// <param name="trialSetQuery">The trial set query.</param> /// <returns></returns> public async Task Add(TrialSetQueryDto trialSetQuery) { await this.Collection.InsertOneAsync(trialSetQuery); }
/// <summary> /// Gets the trial set by identifier. /// </summary> /// <param name="id">The identifier.</param> /// <returns></returns> public async Task <TrialSetQueryDto> GetTrialSetById(Guid id) { TrialSetQueryDto trialSet = await this._repository.GetTrialSet(id); return(trialSet); }
/// <summary> /// Updates the specified trial set query. /// </summary> /// <param name="trialSetQuery">The trial set query.</param> /// <returns></returns> public async Task Update(TrialSetQueryDto trialSetQuery) { await this.Collection.ReplaceOneAsync(t => t.Id == trialSetQuery.Id, trialSetQuery); }