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