public ConferenceDTO GetConference(int id) { var conference = (from c in _confRepo.GetById(id) select new ConferenceDTO() { Id = c.Id, Name = c.Name, StartDate = c.StartDate, EndDate = c.EndDate, ImageUrl = c.ImageUrl, Rooms = (from r in c.Rooms select new RoomDTO() { Id = r.Id, ConferenceId = r.ConferenceId, Name = r.Name, Slots = (from s in r.Slots select new SlotDTO() { Id = s.Id, StartTime = s.StartTime, EndTime = s.EndTime, Presentation = new PresentationDTO() { Title = s.Presentation.Title, Description = s.Presentation.Description }, Speaker = new SpeakerDTO() { FirstName = s.Speaker.FirstName, LastName = s.Speaker.LastName, Title = s.Speaker.Title, Phone = s.Speaker.Phone, Email = s.Speaker.Email, Company = s.Speaker.Company, CoStreet = "", CoCity = "", CoState = "", CoZip = "", Bio = s.Speaker.Bio, ImageUrl = s.Speaker.ImageUrl } }).ToList() }).ToList(), Street = c.Address.Street, City = c.Address.City, State = c.Address.State, Zip = c.Address.Zip } ).FirstOrDefault(); return(conference); }