Example #1
0
 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
     };
 }
Example #2
0
 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
     };
 }