private IList <LinkDto> GetLinksForTournament(Guid tournamentId, Guid teamId)
 {
     return(new List <LinkDto>
     {
         LinkDto.DeleteLink(Url.Link(nameof(LeaveTournament), new { teamId, tournamentId })),
         LinkDto.AllLink(Url.Link(nameof(GetTeamTournaments), new { teamId }))
     });
 }
 private IList <LinkDto> GetLinksForUser(Guid userId)
 {
     return(new List <LinkDto>
     {
         LinkDto.SelfLink(Url.Link(nameof(GetUserById), new { userId })),
         LinkDto.DeleteLink(Url.Link(nameof(DeleteUserById), new { userId })),
         LinkDto.AllLink(Url.Link(nameof(GetAllUsers), null)),
     });
 }
 private IList <LinkDto> GetLinksForMember(Guid memberId, Guid teamId)
 {
     return(new List <LinkDto>
     {
         LinkDto.CreateLink(Url.Link(nameof(AddMemberToTeam), new { teamId })),
         LinkDto.DeleteLink(Url.Link(nameof(RemoveMemberFromTeam), new { teamId, memberId })),
         LinkDto.SelfLink(Url.Link(nameof(GetTeamMemberById), new { teamId, memberId })),
         new(Url.Link(nameof(GetMembers), new { teamId }), "all", HttpMethod.Get)
     });
Beispiel #4
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 }))
     });
 }