Example #1
0
        public TalkDbModel(TalkDbEntity e, VenueDbEntity venue,
                           IEnumerable <PersonDbEntity> speakers, IEnumerable <OrganizationDbEntity> organizers,
                           IEnumerable <CategoryDbEntity> categories, IEnumerable <TalkRecordingDbEntity> recordings)
        {
            e.MapTo(this);

            this.Venue = venue;

            this.Speakers = speakers.ToList();

            this.Organizers = organizers.ToList();

            this.DirectCategories = categories.ToList();

            this.Recordings = recordings.ToList();
        }
Example #2
0
 public IViewComponentResult Invoke(TalkDbEntity talk)
 {
     return(View(talk));
 }