Beispiel #1
0
 /// <summary>
 /// Maps the story.
 /// </summary>
 /// <param name="story">The story.</param>
 /// <returns>ItemContent.</returns>
 public static ItemContent MapStory(Models.Publication story)
 {
     return(AutoMapper.Mapper.Map <ItemContent>(story));
 }
Beispiel #2
0
 /// <summary>
 /// Maps the story view.
 /// </summary>
 /// <param name="publication">The publication.</param>
 /// <returns>StoryViewModel.</returns>
 public static StoryViewModel MapStoryView(Models.Publication publication)
 {
     return(AutoMapper.Mapper.Map <ViewModels.StoryViewModel>(publication));
 }