async Task <PreflightConcepts> GetConceptsAsyncImpl(ConceptRef cr) { if (user.IsInstitutional) { return(await reader.GetConceptsByIdAsync(cr.Id.Value)); } return(await reader.GetConceptsByUniversalIdAsync(cr.UniversalId)); }
/// <summary> /// Preflight checks a single concept. /// </summary> /// <returns>Preflight check results, which contains the actual concepts if the check passed.</returns> /// <param name="cr">Concept reference.</param> /// <exception cref="System.Data.Common.DbException"/> public async Task <PreflightConcepts> GetConceptsAsync(ConceptRef cr) { log.LogInformation("Getting preflight concept check. Ref:{@Ref}", cr); if (user.IsInstutional) { return(await reader.GetConceptsByIdAsync(cr.Id.Value)); } return(await reader.GetConceptsByUniversalIdAsync(cr.UniversalId)); }