public ActionResult DeviceBindLocatoin(DeviceEditModel model) { bool result = this._iShakeAroundService.DeviceBindLocatoin(model.device_id, model.uuid, model.major, model.minor, model.poi_id); return(Json(new { success = result })); }
public ActionResult Save(DeviceEditModel model) { if (model.id == 0) { bool flag = _saService.AddDevice(model.quantity, model.apply_reason, model.comment, new long?(model.poi_id)); return(Json(new { success = flag })); } bool flag1 = _saService.UpdateDevice(model.device_id, model.uuid, model.major, model.minor, model.comment, model.poi_id); return(Json(new { success = flag1 })); }
public ActionResult Save(DeviceEditModel model) { if (model.id == 0) { bool result = this._iShakeAroundService.AddDevice(model.quantity, model.apply_reason, model.comment, model.poi_id); return(Json(new { success = result })); } else { bool result = this._iShakeAroundService.UpdateDevice(model.device_id, model.uuid, model.major, model.minor, model.comment, model.poi_id); return(Json(new { success = result })); } }
public ActionResult DeviceBindLocatoin(DeviceEditModel model) { bool flag = _saService.DeviceBindLocatoin(model.device_id, model.uuid, model.major, model.minor, model.poi_id); return(Json(new { success = flag })); }