Ejemplo n.º 1
0
        public ActionResult UserImprovementVail(string UserName, DateTime calendar1, string sex, string bankcard, string str, string phone, string email, int id, string Imgurl)
        {
            JsonModel jm   = new JsonModel();
            Users     user = new Users();
            dizhi     d    = new dizhi();

            user.bankCard = bankcard;
            user.Sex      = sex;
            user.Email    = email;
            user.Birthday = calendar1;
            user.ImgUrl   = Imgurl;
            user.UId      = id;
            user.Uname    = CurrentUserName;
            int n = bll.UpUser(user);

            d.uid     = id;
            d.newname = UserName;
            d.phone   = phone;
            d.adress  = str;
            int m = gbll.Addadress(d);

            if (n > 0 && m > 0)
            {
                jm.status = 1;
                //AdminPage.WriteUserCookieimg(user);
            }
            else
            {
                jm.status = 0;
                jm.msg    = "信息完善失败!";
            }
            return(Json(jm, JsonRequestBehavior.AllowGet));
        }