示例#1
0
 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));
 }
示例#2
0
 public ActionResult Del(Garden garden)
 {
     return Json(gardenOper.Del(garden));
 }