public Task <Step> GetStepByStepIdAsync(int stepId) => DefaultQuery .SelectMany(j => j.Steps) .SingleOrDefaultAsync(s => s.Id == stepId);
public Task <List <RequirementDefinition> > GetRequirementDefinitionsByIdsAsync(IList <int> requirementDefinitionIds) => DefaultQuery .SelectMany(rt => rt.RequirementDefinitions) .Where(rd => requirementDefinitionIds.Contains(rd.Id)) .ToListAsync();
public Task <List <Tag> > GetTagsByTagIdsAsync(IEnumerable <int> tagIds) => DefaultQuery .SelectMany(project => project.Tags) .Where(tag => tagIds.Contains(tag.Id)) .ToListAsync();
public Task <RequirementDefinition> GetRequirementDefinitionByIdAsync(int requirementDefinitionId) => DefaultQuery .SelectMany(rt => rt.RequirementDefinitions) .SingleOrDefaultAsync(rd => rd.Id == requirementDefinitionId);
public Task <Tag> GetTagByTagIdAsync(int tagId) => DefaultQuery .SelectMany(project => project.Tags) .SingleOrDefaultAsync(tag => tag.Id == tagId);