public void DeleteTrack(int trackId)
        {
            using (var db = new MyTunesDatabaseContext())
            {
                var entity = new Track { TrackId = trackId };

                db.Entry(entity).State = EntityState.Deleted;
                db.SaveChanges();
            }
        }
        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();
            }
        }