using System.Collections.Generic;
using System.Threading.Tasks;
static List<Person> people = Database.GetPeople();
public static void Main(string[] args)
Console.WriteLine("Program START");
Console.WriteLine("Select a command: list, add, exit");
string command = Console.ReadLine();
Console.WriteLine("Program END");
Console.WriteLine("=======PEOPLE=======");
Console.WriteLine("Id " + "Name".PadRight(namelength + 2) + "Gender");
foreach(var person in people)
Console.WriteLine(person.Id.ToString().PadRight(4) + person.Name.PadRight(namelength + 2), person.Gender.ToString());
Console.WriteLine("Input Id#");
string id = Console.ReadLine();
Console.WriteLine("Input Name");
string name = Console.ReadLine();
Console.WriteLine("Input Gender");
string gender = Console.ReadLine();
Person person = new Person();
person.Id = Convert.ToInt32(id);
public static List<Person> GetPeople()
var result = new List<Person>();
Id = 2, Name = "John Doe", Gender = "Male"
Id = 3, Name = "Jane Doe", Gender = "Female"
Id = 1, Name = "Juan Dela Cruz", Gender = "Male"
Id = 4, Name = "Juanita Dela Cruz", Gender = "Female"
public int Id { get; set; }
public string Name { get; set; }
public string Gender { get; set; }