Esempio n. 1
0
        /// <summary>
        /// 更新登录凭证
        /// </summary>
        /// <param name="model"></param>
        public void Update(UserTokenDto model)
        {
            UserTokenEntity entity = _userTokenRepository.Table.Where(a => a.UserID == model.UserID).FirstOrDefault();

            entity = model.ToEntity(entity);
            _userTokenRepository.Update(entity);
        }
Esempio n. 2
0
        /// <summary>
        /// 插入登录凭证
        /// </summary>
        /// <param name="model"></param>
        public void Insert(UserTokenDto model)
        {
            UserTokenEntity entity = model.ToEntity();

            _userTokenRepository.Insert(entity);
        }