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