Beispiel #1
0
        public static List <GladiatorTemplate> SelectAllGladiators()
        {
            var gladiatorDb = GladiatorDB.AllGladiators();

            var gladiators = (from g in gladiatorDb
                              select g).ToList();

            return(gladiators);
        }
Beispiel #2
0
        //Selects Gladiator By Key Input
        public static GladiatorTemplate SelectGladiatorByKeyInput(ConsoleKey key)
        {
            var gladiatorDb = GladiatorDB.AllGladiators();

            var gladiator = (from g in gladiatorDb
                             where g.Key == key
                             select g).FirstOrDefault();

            return(gladiator);
        }