Ejemplo n.º 1
0
        public static List <DisplayGame> SearchGamesInDb(string q)
        {
            var retval = new List <DisplayGame>();

            var qArray = q.Split(' ');

            var dbGames = DbAccess.GameSearch(qArray);

            if (dbGames.Any())
            {
                retval.AddRange(dbGames.Select(x => new DisplayGame(x)));
            }

            return(retval);
        }