Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var hotelInfo = GetHotelInfo();

            var excelGenerator = new ExcelGenerator();
            var task           = excelGenerator.SaveTable(hotelInfo.HotelRates, GetExcelColumnInfos(), $"{hotelInfo.Hotel.Name}.xlsx");

            try
            {
                task.Wait();
                Console.WriteLine("Excel file created");
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }