/// <summary> /// 删除公告信息 /// </summary> /// <param name="import">数据集</param> /// <returns>返回操作结果</returns> public NormalResult RemoveBullein(RemoveBulleinImport import) { try { import.CheckAllowExecuteOrNot(db); new BulletinManager(db).Remove(import); return new NormalResult(); } catch (Exception ex) { return new NormalResult(ex.Message); } }
void Remove_do(object sender, EventArgs e) { NormalPrompt np = (NormalPrompt)sender; if (np.DialogResult != true) { return; } AdministratorExport aInfo = DataManager.GetValue<AdministratorExport>(DataKey.IWorld_Backstage_AdministratorInfo); RemoveBulleinImport import = new RemoveBulleinImport { Id = this.State.Id, Token = aInfo.Token }; MessageServiceClient client = new MessageServiceClient(); client.RemoveBulleinCompleted += ShowRemoveResult; client.RemoveBulleinAsync(import); }