public User_Info GetUserInfo(Maticsoft.Model.User_Info_Search model)
        {
            var    query = _userRepository.Table;
            CxUser userR;

            if (model.trantype == "ByName")
            {
                userR = query.Where(x => x.UserName == model.para).ToList().FirstOrDefault();
            }
            else
            {
                userR = query.Where(x => x.UserID == int.Parse(model.para)).ToList().FirstOrDefault();
            }
            var result = new Maticsoft.Model.User_Info();


            result.UserName = userR.UserName;
            result.RealName = userR.RealName;
            result.Email    = userR.Email;
            result.Address  = userR.Address;
            result.Mobile   = userR.Mobile;
            result.Id       = userR.UserID;
            result.UserPwd  = userR.UserPassword;
            result.isAdmin  = userR.isAdmin;

            return(result);
        }
 public int Update(Maticsoft.Model.User_Info model)
 {
     return(1);
 }
 public int Add(Maticsoft.Model.User_Info model)
 {
     return(1);
 }