Beispiel #1
0
 public PresentationCollection Get() => new PresentationCollection(repo
                                                                   .GetAll()
                                                                   .Select(presentation => new PresentationResource(presentation))
                                                                   .ToList())
 .EmbedRelations(Request, embeddedRelationsSchema);
Beispiel #2
0
 public PresentationCollection Get() => new PresentationCollection(LinkTemplates.Presentations.Get.Rel,
                                                                   repo.GetAll().Select(presentation => new PresentationResource(presentation)))
 .EmbedRelations(Request, embeddedRelationsSchema, userManager);
Beispiel #3
0
 // GET: Presentations
 public async Task <IActionResult> Index()
 {
     return(View(await _presentationRepository.GetAll()));
 }
 public IEnumerable <Presentation> Get() => repo.GetAll();