private IList <LinkDto> GetLinksForTeam(Guid teamId)
 {
     return(new List <LinkDto>
     {
         LinkDto.CreateLink(Url.Link(nameof(CreateTeam), null)),
         LinkDto.SelfLink(Url.Link(nameof(GetTeamById), new { teamId }))
     });
 }
示例#2
0
 private IList <LinkDto> GetLinksForTest(Guid stepId, Guid testId)
 {
     return(new List <LinkDto>
     {
         LinkDto.SelfLink(Url.Link(nameof(GetTestById), new { testId })),
         LinkDto.CreateLink(Url.Link(nameof(StepsController.AddTest), new { stepId, testId })),
         LinkDto.AllLink(Url.Link(nameof(GetTests), null))
     });
 }
示例#3
0
 private IList <LinkDto> GetLinksForParticipation(Guid participationId)
 {
     return(new List <LinkDto>
     {
         LinkDto.CreateLink(Url.Link(nameof(CreateParticipation), null)),
         LinkDto.SelfLink(Url.Link(nameof(GetParticipationById), new { participationId })),
         LinkDto.AllLink(Url.Link(nameof(GetParticipations), 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)
     });
示例#5
0
 private IList <LinkDto> GetLinksForUser(Guid participationId, Guid userId)
 {
     return(new List <LinkDto>
     {
         LinkDto.AllLink(Url.Link(nameof(GetUsers), new { participationId })),
         LinkDto.SelfLink(Url.Link(nameof(GetSessionUserById), new { participationId, userId })),
         LinkDto.CreateLink(Url.Link(nameof(ElevateMember), new { participationId, userId }))
     });
 }
示例#6
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 }))
     });
 }