Example #1
0
        public LocalPostFull(LocalPost dbo)
        {
            // TODO: This kind of thing can be done via AutoMapper!
            // AutoMapper generates these kinds of name => name object mappings making this no longer needed and saving redundancies
            //  altName => name mappings can easily be setup as well.

            Title       = dbo.Title;
            Description = dbo.Description;
            Keywords    = dbo.Keywords;
            HeroImage   = dbo.HeroImage;
        }
Example #2
0
 public LocalPostDealSimple(LocalPost dbo) : base(dbo)
 {
     HeroImage = dbo.HeroImageThumb; // Only need the down-sized thumb for Simple display
 }
Example #3
0
 public LocalPostDealFull(LocalPost dbo) : base(dbo)
 {
     // . . .
 }