Altairis.Fakturoid.Client.DemoApp.Program.ShowEvents C# (CSharp) Method

ShowEvents() private static method

private static ShowEvents ( ) : void
return void
        private static void ShowEvents()
        {
            Console.Write("Getting all events in last 24 hour...");
            var items = context.Events.Select(since: DateTime.Now.AddDays(-1));
            Console.WriteLine("OK");

            foreach (var item in items) {
                Console.WriteLine("{0}: ({1}) {2}", item.created_at, item.name, item.text);
            }
            Console.WriteLine();
        }