public IActionResult Add(AddSessionViewModel model) { var talk = talkService.GetTalk(model.TalkId); var venue = venueService.GetVenue(model.VenueId); var session = new Session { Talk = talk, Start = model.StartDate.AddHours(model.StartTime), Venue = venue, TalkType = talkService.GetTalkType(model.TalkTypeId), Status = SessionStatus.Open }; sessionService.AddSession(session); return(View("Index", new SessionListViewModel { SessionList = sessionService.GetSessions().ToList() })); }