Пример #1
0
        public ActionResult EditUserInfo(string id, UserInfo uInfo, HttpPostedFileBase image)
        {
            if (Session["UserLogin"] == null)
            {
                return(RedirectToAction("Login"));
            }

            if (image != null)
            {
                uInfo.ImageData = UpFlie(image);
            }
            if (iUserDal.EditEntity(uInfo))
            {
                return(RedirectToAction("ShowUserInfo"));
            }
            else
            {
                return(Content("编辑出错,请重试!"));
            }
        }