public static void Main() { var ele = new Election(); var ui = new ElectionUI(ele); ui.candidateInfo(); ele.findWinner(); }
static void Main(string[] args) { Info myInfo = new Info(); myInfo.DisplayInfo("Election Result"); ElectionUI newEUI = new ElectionUI(); newEUI.MainMethod(); }
public async Task <IActionResult> UpdateElection(Guid id, ElectionUI election) { var e = await _context.Election.FindAsync(id); election.UpdateElection(e); await _context.SaveChangesAsync(); return(Ok()); }
private static void Main(string[] args) { //a new instance of the Info class called myInfo is created Info myInfo = new Info(); //starts the AssignmentInfo method from the Info class and passes in the assignment data string myInfo.DisplayInfo("Assignment 3 - Election Results"); Thread.Sleep(4000); ElectionUI start = new ElectionUI(); start.MainMethod(); }
private static void Main() { //a new instance of the Info class called myInfo is created Info myInfo = new Info(); //starts the AssignmentInfo method from the Info class and passes in the assignment data string myInfo.DisplayInfo("Assignment 3 - Farmer Game"); Thread.Sleep(4000); ElectionUI playGame = new ElectionUI(); playGame.MainMethod(); }