public static UpdateParameter ToUpdateParameter(string id, ExternalSourceViewModel viewModel)
 {
     return new UpdateParameter()
     {
         Id = id,
         Name = viewModel.Name.Value,
         Genre = viewModel.Genre.Value,
         Description = viewModel.Description.Value,
         ContactUrl = viewModel.ContactUrl,
         Comment = viewModel.Comment.Value,
         TrackArtist = "",
         TrackTitle = "",
         TrackAlbum = "",
         TrackGenre = "",
         TrackContact = "",
     };
 }
 public static BroadcastParameter ToBroadcastParameter(ExternalSourceViewModel viewModel)
 {
     return new BroadcastParameter()
     {
         StreamUrl = viewModel.StreamUrl,
         Name = viewModel.Name.Value,
         Genre = viewModel.Genre.Value,
         Description = viewModel.Description.Value,
         Type = viewModel.Type,
         ContactUrl = viewModel.ContactUrl,
         Comment = viewModel.Comment.Value,
         TrackArtist = "",
         TrackTitle = "",
         TrackAlbum = "",
         TrackGenre = "",
         TrackContact = "",
     };
 }
 public ChannelViewModel(IEnumerable<IYellowPages> yellowPagesList, Configuration configuration)
 {
     YellowPagesListViewModel = new YellowPagesListViewModel(yellowPagesList, configuration);
     ExternalSourceViewModel = new ExternalSourceViewModel(configuration);
 }