protected void gridView_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "RegionRec") { int regionId = Globals.SafeInt(e.CommandArgument.ToString(), 0); RegionRec rec = new RegionRec(); if (rec.AddEx(regionId, 0) > 0) { MessageBox.ShowSuccessTip(this, "推荐成功!"); } else { MessageBox.ShowSuccessTip(this, "推荐失败!"); } } }
public ActionResult HotCity() { List<Maticsoft.Model.Ms.RegionRec> recCityList = new Maticsoft.BLL.Ms.RegionRec().GetRecCityList(0); return this.PartialView("_HotCity", recCityList); }