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 }) }); }
public async Task <RankingEntry> Get(Guid userId) { return(await QueryPublisher.ExecuteAsync(new UserScoreQuery { UserId = userId })); }
public async Task <RankingTableQueryResult> Get() { return(await QueryPublisher.ExecuteAsync(new RankingTableQuery())); }
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))); }
public async Task <IActionResult> Get([FromQuery] ParticipantBetQuery query) { return(Ok(await QueryPublisher.ExecuteAsync(query))); }
public async Task <Profile> Get() { var query = new UserProfileQuery(); return(await QueryPublisher.ExecuteAsync(query)); }
public async Task <IEnumerable <BetsWithResultQueryResult> > Get() { return(await QueryPublisher.ExecuteAsync(new BetsWithResultQuery())); }
public async Task <IEnumerable <Team> > Get() { return(await QueryPublisher.ExecuteAsync(new AllTeamsQuery())); }