Пример #1
0
 public SongListForEditContract ToContract()
 {
     return(new SongListForEditContract
     {
         Description = Description ?? string.Empty,
         EventDate = EventDate,
         FeaturedCategory = FeaturedCategory,
         Id = Id,
         Name = Name,
         SongLinks = SongLinks.ToArray(),
         Status = Status,
         UpdateNotes = UpdateNotes ?? string.Empty
     });
 }
Пример #2
0
        public virtual SongInList AddSong(Song song)
        {
            var order = (SongLinks.Any() ? SongLinks.Max(s => s.Order) + 1 : 1);

            return(AddSong(song, order, string.Empty));
        }