Exemplo n.º 1
0
 public async Task <ActionResult <List <SubjectViewModel> > > ListSubjects(Guid releaseId)
 {
     return(await _cacheKeyService
            .CreateCacheKeyForReleaseSubjects(releaseId)
            .OnSuccess(ListSubjects)
            .HandleFailuresOrOk());
 }
Exemplo n.º 2
0
 public async Task <ActionResult <List <SubjectViewModel> > > ListLatestReleaseSubjects(Guid publicationId)
 {
     return(await _publicationService
            .GetLatestRelease(publicationId)
            .OnSuccess(release => _cacheKeyService.CreateCacheKeyForReleaseSubjects(release.Id))
            .OnSuccess(ListLatestReleaseSubjects)
            .HandleFailuresOrOk());
 }