public async Task <IActionResult> Get(int id) { var invite = _inviteService.GetInvite(id); var inviteDto = _mapper.Map <InviteDto>(invite); var response = new ApiResponse <InviteDto>(inviteDto); return(Ok(response)); }
public static Invite GetInvite(string key) { return(_current.GetInvite(key)); }
public static async Task <Invite> GetInvite(string code) { IInviteService inviteservice = AuthenticatedRestFactory.GetInviteService(); return(await inviteservice.GetInvite(code)); }