-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
32 lines (30 loc) · 1.06 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
namespace CatWorx.BadgeMaker
{
class Program
{
static void Main(string[] args)
{
List<Employee> employees;
Console.WriteLine("Would you like to enter employee information? (y/n): ");
string response1 = Console.ReadLine();
if (response1 == "y" || response1 == "yes" || response1 == "Yes")
{
employees = PeopleFetcher.GetEmployees();
Util.PrintEmployees(employees);
Util.MakeCSV(employees);
Util.MakeBadges(employees);
}
Console.WriteLine("Would you like to fetch employee data from the API? (y/n): ");
string response2 = Console.ReadLine();
if (response2 == "y" || response2 == "yes" || response2 == "Yes")
{
employees = PeopleFetcher.GetFromAPI();
Util.PrintEmployees(employees);
Util.MakeCSV(employees);
Util.MakeBadges(employees);
}
}
}
}