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 }); }
public virtual SongInList AddSong(Song song) { var order = (SongLinks.Any() ? SongLinks.Max(s => s.Order) + 1 : 1); return(AddSong(song, order, string.Empty)); }