private void Create(object sender, RoutedEventArgs e) { int ticketId = ((BasicLotteryTicketExport)input_tickets.SelectedItem).Id; CreateVirtualBonusImport import = new CreateVirtualBonusImport { TicketId = ticketId, Sum = Convert.ToDouble(input_Sum.Text), Token = DataManager.GetValue<AdministratorExport>(DataKey.IWorld_Backstage_AdministratorInfo).Token }; client.CreateVirtualBonusAsync(import); }
/// <summary> /// 创建新的虚拟排行 /// </summary> /// <param name="import">数据集</param> /// <returns>返回操作结果</returns> public NormalResult CreateVirtualBonus(CreateVirtualBonusImport import) { try { import.CheckAllowExecuteOrNot(db); new VirtualBonusManager(db).Create(import); return new NormalResult(); } catch (Exception ex) { return new NormalResult(ex.Message); } }