private TrackDetail TrackDetailBuilder(Track track)
 {
     TrackDetail result = new TrackDetail();
     result.Id = track.TrackId;
     result.AlbumId = track.AlbumId;
     result.TrackName = track.Name;
     result.Rate = track.Rate;
     Album album = db.Albums.Find(track.AlbumId);
     result.AlbumName = album.Name;
     result.AutorId = album.AutorId;
     Autor autor = db.Autors.Find(album.AutorId);
     result.AutorName = autor.Name;
     return result;
 }
 private TrackDetail TrackDetailsViewModelConfig(Track track)
 {
     TrackDetail result = new TrackDetail
     {
         AlbumId = track.AlbumId,
         AutorName = db.Autors.Find(db.Albums.Find(track.AlbumId).AutorId).Name,
         AlbumName = db.Albums.Find(track.AlbumId).Name,
         AutorId = db.Albums.Find(track.AlbumId).AutorId,
         Id = track.TrackId,
         Rate = track.Rate,
         TrackName = track.Name
     };
     return result;
 }