Example #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 }) });
        }
Example #2
0
 public async Task <RankingEntry> Get(Guid userId)
 {
     return(await QueryPublisher.ExecuteAsync(new UserScoreQuery { UserId = userId }));
 }
Example #3
0
 public async Task <RankingTableQueryResult> Get()
 {
     return(await QueryPublisher.ExecuteAsync(new RankingTableQuery()));
 }
Example #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)));
 }
Example #6
0
 public async Task <IActionResult> Get([FromQuery] ParticipantBetQuery query)
 {
     return(Ok(await QueryPublisher.ExecuteAsync(query)));
 }
Example #7
0
        public async Task <Profile> Get()
        {
            var query = new UserProfileQuery();

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