Esempio n. 1
0
        public async Task <ContactInfo> GetById(long Id)
        {
            var contact = await _repository.GetByIdasync(Id);

            contact.Mobile           = EncryptDecrypt.Decrypt3DES(contact.Mobile, _accessSettings.Value.Key);
            contact.HotwireTelephone = EncryptDecrypt.Decrypt3DES(contact.HotwireTelephone, _accessSettings.Value.Key);
            contact.Email            = EncryptDecrypt.Decrypt3DES(contact.Email, _accessSettings.Value.Key);
            contact.QQ = EncryptDecrypt.Decrypt3DES(contact.QQ, _accessSettings.Value.Key);
            return(contact);
        }