コード例 #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 }) });
        }
コード例 #2
0
 public async Task <RankingEntry> Get(Guid userId)
 {
     return(await QueryPublisher.ExecuteAsync(new UserScoreQuery { UserId = userId }));
 }
コード例 #3
0
 public async Task <RankingTableQueryResult> Get()
 {
     return(await QueryPublisher.ExecuteAsync(new RankingTableQuery()));
 }
コード例 #4
0
 public async Task <IEnumerable <Game> > Get(string group, GameType?type, DateTimeOffset?startDate)
 {
     return(await QueryPublisher.ExecuteAsync(new GamesQuery(group, type, startDate)));
 }
コード例 #5
0
 public async Task <IActionResult> CreateToken([FromBody] SignInValidQuery query)
 {
     return(Ok(await QueryPublisher.ExecuteAsync(query)));
 }
コード例 #6
0
 public async Task <IActionResult> Get([FromQuery] ParticipantBetQuery query)
 {
     return(Ok(await QueryPublisher.ExecuteAsync(query)));
 }
コード例 #7
0
        public async Task <Profile> Get()
        {
            var query = new UserProfileQuery();

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