private string BuildSearchQuery(SongProps songProps, int page = 1) { return($"name=\"{songProps.Name}\" artist=\"{songProps.Artist}\"" + $" album=\"{songProps.Album}\" genre=\"{songProps.Genre}\"&from={(page-1)*20}"); }
public async Task <List <Song> > SearchAsync(SongProps filter, int page = 1) { string searchQuery = BuildSearchQuery(filter, page); return(await SearchAsync(searchQuery)); }