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