public async Task <IEnumerable <Project> > GetDynamic() { var result = await IDynamicCollectionService.GetOrCreateAsync <Project>( $"{nameof(ProjectRepository)}:{nameof(GetDynamic)}" ); return(result); }
public async Task <IEnumerable <Work> > GetDynamic(Project project) { var result = await IDynamicCollectionService.GetOrCreateAsync <Work>( $"{nameof(WorkRepository)}:{project.Id}", c => c.Where(x => x.ProjectId == project.Id) ); return(result); }