Exemplo n.º 1
0
        public async Task <IEnumerable <Profile> > Get(Guid?id)
        {
            if (!id.HasValue)
            {
                return(await QueryPublisher.ExecuteAsync(new AllUserQuery()));
            }

            return(new[] { await QueryPublisher.ExecuteAsync(new UserByIdQuery { Id = id.Value }) });
        }
Exemplo n.º 2
0
 public async Task <RankingEntry> Get(Guid userId)
 {
     return(await QueryPublisher.ExecuteAsync(new UserScoreQuery { UserId = userId }));
 }
Exemplo n.º 3
0
 public async Task <RankingTableQueryResult> Get()
 {
     return(await QueryPublisher.ExecuteAsync(new RankingTableQuery()));
 }
Exemplo n.º 4
0
 public async Task <IEnumerable <Game> > Get(string group, GameType?type, DateTimeOffset?startDate)
 {
     return(await QueryPublisher.ExecuteAsync(new GamesQuery(group, type, startDate)));
 }
 public async Task <IActionResult> CreateToken([FromBody] SignInValidQuery query)
 {
     return(Ok(await QueryPublisher.ExecuteAsync(query)));
 }
Exemplo n.º 6
0
 public async Task <IActionResult> Get([FromQuery] ParticipantBetQuery query)
 {
     return(Ok(await QueryPublisher.ExecuteAsync(query)));
 }
Exemplo n.º 7
0
        public async Task <Profile> Get()
        {
            var query = new UserProfileQuery();

            return(await QueryPublisher.ExecuteAsync(query));
        }
Exemplo n.º 8
0
 public async Task <IEnumerable <BetsWithResultQueryResult> > Get()
 {
     return(await QueryPublisher.ExecuteAsync(new BetsWithResultQuery()));
 }
Exemplo n.º 9
0
 public async Task <IEnumerable <Team> > Get()
 {
     return(await QueryPublisher.ExecuteAsync(new AllTeamsQuery()));
 }