Exemplo n.º 1
0
        private static void AddAwardForUser(IAwardLogic awardlogic)
        {
            int iduser;
            int idaward;

            Console.WriteLine("enter the user ID to which you want to add a award");
            if (!int.TryParse(Console.ReadLine(), out iduser))
            {
                Console.WriteLine("date entry user ID");
                return;
            }

            Console.WriteLine("enter the award ID to which you want to add");
            if (!int.TryParse(Console.ReadLine(), out idaward))
            {
                Console.WriteLine("date entry award ID");
                return;
            }

            awardlogic.AddAwardForUser(iduser, idaward);
        }