예제 #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;
        }
예제 #2
0
 public LocalPostDealSimple(LocalPost dbo) : base(dbo)
 {
     HeroImage = dbo.HeroImageThumb; // Only need the down-sized thumb for Simple display
 }
예제 #3
0
 public LocalPostDealFull(LocalPost dbo) : base(dbo)
 {
     // . . .
 }