protected virtual ViewModels.Slide MapToModel(Domain.Deck deck, Domain.Slide slide) { return new ViewModels.Slide { DeckName = deck.Name, SlideNumber = deck.NumberOf(slide), Content = new HtmlString(slide.Content), DeckId = deck.Id }; }
protected virtual ViewModels.SlideForm MapToFormModel(Domain.Deck deck, Domain.Slide slide) { return new ViewModels.SlideForm { DeckName = deck.Name, SlideNumber = deck.NumberOf(slide), Source = slide.Source, DeckId = deck.Id }; }