示例#1
0
        public async Task <PagingQueryResult <Disco> > Find(DiscoParams parameters)
        {
            var query = DbSet.Where(x => x.Genero == parameters.Genero)
                        .OrderBy(x => x.Nome);

            var count = await query.CountAsync();

            return(await PaginarResultado(query, parameters, count));
        }
示例#2
0
        public async Task <PagingQueryResult <Disco> > Get([FromQuery] DiscoParams parameters)
        {
            await ExecuteCommand(new SincronizarSpotifyCommand());

            return(await _discoQueries.Find(parameters));
        }