public ActionResult Update(Garden garden) { //根据地址码获取地址 garden.Addr = PojoUtil.GetAddrForCode(HibernateOper, garden.AddrCode); LocationUtil.Location loc = LocationUtil.GetLocation(garden.Addr + garden.Location); if (loc != null) { garden.Lat = loc.lat; garden.Lng = loc.lng; } return Json(gardenOper.Update(garden)); }
public ActionResult Del(Garden garden) { return Json(gardenOper.Del(garden)); }