Ejemplo n.º 1
0
        public async Task <ResultData <TUserPassWord> > QueryUserPassWordById(string encryptId)
        {
            try
            {
                UserPassWordService service = new UserPassWordService();
                int           id            = int.Parse(_protector.Unprotect(encryptId));
                TUserPassWord userPassWord  = await service.QueryUserPassWordById(id);

                return(await OutDataAsync(userPassWord));
            }
            catch (Exception e)
            {
                return(await OutErrorAsync <TUserPassWord>(e.Message));
            }
        }