public void EditButton(dynamic data) { var wrappers = RequestWrapper.InstanceArray(1); wrappers[0].SetJson("{table:'sys_button',where:[{column:'ButtonCode'}]}"); var service = new sys_buttonService(); var result = service.Edit(data, null, wrappers); }
public void EditButton(dynamic data) { var listWrapper = RequestWrapper.Instance().LoadSettingXmlString(@" <settings> <table>sys_button</table> <where> <field name='ButtonCode' cp='equal'></field> </where> </settings>"); var service = new sys_buttonService(); var result = service.Edit(null, listWrapper, data); }