public bool Insert(UserInfoDto model)
        {
            model.uAddTime = DateTime.Now;
            var olModel = Mapper.Map <Q_UserInfo>(model);
            var back    = _userRepository.InsertAndGetId(olModel);

            return(back > 0);
        }
        public bool Update(UserInfoDto model)
        {
            var olmodel = _userRepository.GetAll().First(u => u.uId == model.uId);

            try
            {
                olmodel.uRemark    = model.uRemark;
                olmodel.uName      = model.uName;
                olmodel.uLoginName = model.uLoginName;
                olmodel.uEmail     = model.uEmail;
                olmodel.uGender    = model.uGender;
                olmodel.uIsDel     = model.uIsDel;
                olmodel.uPwd       = model.uPwd;
                olmodel.uDepId     = model.uDepId;
                _userRepository.Update(olmodel);
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }