public ActionResult SeeImage() { int id = int.Parse(Request["id"]); var temp = T_ChuZhuInfoService.LoadEntities(x => x.ID == id).FirstOrDefault(); string imageSTR = temp.Images; string Masimage = imageSTR.Replace("有---", string.Empty); if (temp != null) { return(Content(Common.SerializerHelper.SerializeToString(new { sData = Masimage, msg = "ok" }))); } else { return(Content(Common.SerializerHelper.SerializeToString(new { msg = "no" }))); } }
public ActionResult GetChuZhudata() { UserInfoParam uip = new UserInfoParam(); uip.PageIndex = Request["page"] != null?int.Parse(Request["page"]) : 1; uip.PageSize = Request["rows"] != null?int.Parse(Request["rows"]) : 5; uip.TotalCount = 0; uip.CityID = LoginUser.CityID; uip.Str = Request["Str"] != null ? Request["Str"] : null; uip.Isee = Request["Isee"] != null?Convert.ToBoolean(Request["Isee"]) : false; uip.C_id = LoginUser.ID; var temp = T_ChuZhuInfoService.LoadSearchEntities(uip); var Rtemo = from a in temp select new { ID = a.ID, TextName = a.ChuZhuName, Pername = a.LianXiPerson, Photo = a.LianXiPhoto, Address = a.Addess, Fbtime = a.FbTime, Money = a.Money, PinMi = a.PingMi, Bak = a.Bak, Images = a.Images, ClickCount = a.SeeQzCzs.Count(), Laiyuan = a.LaiYuan, IsQZ = "CZ", url = a.ChuZhuHref }; return(Json(new { rows = Rtemo, total = uip.TotalCount }, JsonRequestBehavior.AllowGet)); }