コード例 #1
0
        public static async Task AddAdminCommand(CommandArguments args)
        {
            var id = args.MustGetValue <int>("id");

            Data.Tickets.Add(new Ticket(id)
            {
                State = ETicketState.WAIT_IN_QUEUE
            });
            Logger.Info($"Added artificial ticket with id {id}");
        }