public TrackDetailsDto AddTrack(TrackDetailsDto trackDetailsDto)
        {
            var response = httpClient.PostAsJsonAsync("tracks", trackDetailsDto).Result;
            var result = response.Content.ReadAsAsync<TrackDetailsDto>().Result;

            return result;
        }
        public TrackDetailsDto AddTrack(TrackDetailsDto trackDetailsDto)
        {
            using (var db = new MyTunesDatabaseContext())
            {
                var entity = trackDetailsDto.ToTrack();
                entity.MediaTypeId = 1;

                db.Entry(entity).State = EntityState.Added;
                db.SaveChanges();

                return entity.ToDetailsDto();
            }
        }
 public TrackDetailsDto Post(TrackDetailsDto trackDetailsDto)
 {
     return tracksManager.AddTrack(trackDetailsDto);
 }