public dynamic Insert(object data) { if (null == data) { return new { success = 0 } } ; string dt = data.ToString(); EquipmentInfo ei = new EquipmentInfo(); ei.fromJsonUnit(dt); equipmentInfoMapper.insert(ei); return(new { success = 1 }); }