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();
        }
Пример #3
0
        public async Task <IActionResult> UpdateElection(Guid id, ElectionUI election)
        {
            var e = await _context.Election.FindAsync(id);

            election.UpdateElection(e);
            await _context.SaveChangesAsync();

            return(Ok());
        }
Пример #4
0
        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();
        }
Пример #5
0
        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();
        }