Beispiel #1
0
        public async Task <IEnumerable <Project> > GetDynamic()
        {
            var result =
                await
                IDynamicCollectionService.GetOrCreateAsync <Project>(
                    $"{nameof(ProjectRepository)}:{nameof(GetDynamic)}"
                    );

            return(result);
        }
Beispiel #2
0
        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);
        }