Пример #1
0
        void GetHistory()
        {
            string From  = Prompt("The begining date");
            string To    = Prompt("The end date");
            var    DateF = DateTimeConverter(From);
            var    DateT = DateTimeConverter(To);
            var    match = sRepository.GetActivity(DateF, DateT);

            foreach (var item in match)
            {
                Console.WriteLine($"{item.AccessHistoryId}   {item.AccessAttempt}  {item.EmployeeId}  {item.FirstName} {item.LastName} {item.DoorId} {item.Door} {item.Result}");
            }
        }