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)); }
public async Task <PagingQueryResult <Disco> > Get([FromQuery] DiscoParams parameters) { await ExecuteCommand(new SincronizarSpotifyCommand()); return(await _discoQueries.Find(parameters)); }