Exemplo n.º 1
0
 private IList <LinkDto> GetLinksForFunction(Guid participationId, Guid functionId)
 {
     return(new List <LinkDto>
     {
         LinkDto.CreateLink(Url.Link(nameof(AddSessionFunction), new { participationId })),
         LinkDto.DeleteLink(Url.Link(nameof(RemoveSessionFunction), new { participationId, functionId })),
         LinkDto.AllLink(Url.Link(nameof(GetFunctions), new { participationId })),
         LinkDto.SelfLink(Url.Link(nameof(GetSessionFunctionById), new { participationId, functionId })),
         LinkDto.UpdateLink(Url.Link(nameof(UpdateSessionFunction), new { participationId, functionId }))
     });
 }