/// <summary>
        /// 登陆
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public List <DataShareReturnModel> DSLogin(DSLogin request)
        {
            if (string.IsNullOrEmpty(request.UserName) || string.IsNullOrEmpty(request.Password))
            {
                throw new Exception("用户名或密码为空!");
            }
            List <DataShareReturnModel> _list = new List <DataShareReturnModel>();

            using (var db = DbFactory.Open())
            {
                //var builder = db.From<DatashareUser>();
                //builder.LeftJoin<UserInfo, UserRoleInfo>((x,y)=>x.Id==y.UserID);
                //builder.Where(w => w.UserName == request.UserName.Trim() && w.PassWord == DESHelper.DESEncrypt(request.Password.Trim()));
                ////builder.Select("UserInfo.UserName,UserInfo.RealName,UserInfo.adcd,UserInfo.isEnable,UserRoleInfo.RoleID");
                //_model = db.Single<DatashareUser>(builder);

                _list = db.SqlList <DataShareReturnModel>("EXEC DataShareGetUser @username,@password", new { UserName = request.UserName, Password = request.Password });
                return(_list);
            }
        }
 //登陆
 public List <DataShareReturnModel> POST(DSLogin request)
 {
     return(DataShareManager.DSLogin(request));
 }