Esempio n. 1
0
        public ActionResult UserQMSet()
        {
            bizUsers bu = new bizUsers();
            List<Users> list = bu.List();
            foreach (var item in list)
            {
                Users model = bu.Get(item.UserID);
                model.Attach();
                if(model.HeadImages!=null)
                    model.HeadImages = model.HeadImages.Replace("/userfiles/profile", "http://img1.woxx8.com/userfiles/profile");
                if (model.Images != null)
                model.Images = model.Images.Replace("/userfiles/profile", "http://img1.woxx8.com/userfiles/profile");
                model.Detach();
                bu.Update(model);
            }

            return View();
        }