Esempio n. 1
0
        public List <Player> Handle(IQuery <List <Player> > query)
        {
            var playerQuery = query as PlayerListQuery;

            return(PlayerDbContext.GetPlayerProfiles());
        }
Esempio n. 2
0
        public Player Handle(IQuery <Player> query)
        {
            var playerQuery = query as PlayerQuery;

            return(PlayerDbContext.GetPlayer(playerQuery.Name));
        }