Example #1
0
        public static ReccomendationBlockViewComponent ToViewModel(BasicArticle model)
        {
            var component = new ReccomendationBlockViewComponent();

            component.Slug     = model.Slug;
            component.HeadLine = model.HeadLine;
            component.Img      = model.Img;

            return(component);
        }
 public static VerticalBlockViewComponent ToViewModel(BasicArticle model, bool hasBorder)
 {
     return(new VerticalBlockViewComponent()
     {
         Slug = model.Slug,
         HeadLine = model.HeadLine,
         Paragraph = model.Paragraph,
         Img = model.Img,
         Topic = model.PrimaryTopic,
         HasBorder = hasBorder
     });
 }
Example #3
0
 public static FeaturedBlockViewComponent ToViewModel(BasicArticle model)
 {
     return(new FeaturedBlockViewComponent()
     {
         Slug = model.Slug,
         HeadLine = model.HeadLine,
         Paragraph = model.Paragraph,
         Img = model.Img,
         Topic = model.PrimaryTopic,
         Caption = model.Caption
     });
 }