private async void CreateFlyerType() { if (string.IsNullOrWhiteSpace(FlyerTypeName)) { this.ShowMessage("飞机名称不能为空"); return; } var request = new FlyerTypeEntity { TypeName = FlyerTypeName, ActionUserID = CPApplication.CurrentUser.UserName }; await this.facade.CreateFlyerType(request); this.ShowMessage(CommonMsgResource.Msg_SaveSuccess); this.DialogResult = true; }
public async Task <int> UpdateFlyerType(FlyerTypeEntity entity) { return(await this.PutAsync <FlyerTypeEntity, int>("update", entity)); }
public async Task <int> CreateFlyerType(FlyerTypeEntity entity) { return(await this.PostAsync <FlyerTypeEntity, int>("create", entity)); }
public FlyerTypeCreate(FlyerTypeEntity flyerType) : this() { flyerTypeEntity = flyerType; FlyerTypeName = flyerTypeEntity.TypeName; }