Пример #1
0
        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));
        }
Пример #2
0
 public static Invite GetInvite(string key)
 {
     return(_current.GetInvite(key));
 }
Пример #3
0
        public static async Task <Invite> GetInvite(string code)
        {
            IInviteService inviteservice = AuthenticatedRestFactory.GetInviteService();

            return(await inviteservice.GetInvite(code));
        }