Example #1
0
        public static void GettingWatchList(string userName)
        {
            WatchService watchService = new WatchService();
            var          lstWatches   = watchService.GetWatchDetails(userName);

            if (lstWatches != null && lstWatches.Any())
            {
                Console.WriteLine("*******Your Previous Orders*******");
                foreach (var item in lstWatches)
                {
                    Console.WriteLine($"WatchDetails - {item.WatchDetails} , Order Date - {item.CreatedTime.ToString()}");
                }
            }
            else
            {
                Console.WriteLine("*******You don't have any Previous Orders*******");
            }
        }