ToString() публичный Метод

public ToString ( ) : string
Результат string
Пример #1
0
        public async Task <ICollection <AlbumViewModel> > GetAlbumsAsync()
        {
            var ids = new List <string>()
            {
                AlbumCodes.Mogwai.HappySongs,
                AlbumCodes.Mogwai.HardcoreWillNeverDie,
                AlbumCodes.Mono.TheLastDawn
            };

            var idsConcat       = string.Join(",", ids.Select(x => x));
            var queryParameters = new QueryParams(new Dictionary <string, string>()
            {
                { "ids", idsConcat }
            });

            var albumDataModel = await ExecuteGet <AlbumDataModel>(APIEndpoints.AlbumEndpoints.GetAlbums, queryParameters.ToString());

            return(AlbumDtoToAlbumModel.Map(albumDataModel));
        }
 /// <summary>
 /// Disabled one of the native query parameters for a controller.
 /// </summary>
 /// <param name="queryParams"></param>
 public DisableQueryAttribute(QueryParams queryParams)
 {
     QueryParams = queryParams.ToString("G").ToLower();
 }