/// <summary> /// 更新电子口岸信息 /// </summary> /// <param name="_viewInfo"></param> /// <param name="callback"></param> public void UpdateEPortr(EPortVM vm, EventHandler <RestClientEventArgs <EPortEntity> > callback) { string relativeUrl = "/POService/EPort/SaveEport"; var msg = vm.ConvertVM <EPortVM, EPortEntity>(); restClient.Update <EPortEntity>(relativeUrl, msg, callback); }
/// <summary> /// 创建电子口岸 /// </summary> /// <param name="vm"></param> /// <param name="callback"></param> public void CreatEPort(EPortVM vm, EventHandler <RestClientEventArgs <dynamic> > callback) { string relativeUrl = "/POService/EPort/CreatEPort"; var msg = vm.ConvertVM <EPortVM, EPortEntity>(); restClient.Create(relativeUrl, msg, callback); }