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