public IActionResult AddEvent(Guid sessionId) { var sessionInfo = sessionsRepository.GetSessionInfo(sessionId); return(View(new SessionInfoModel { SessionId = sessionId, SessionName = sessionInfo.Name, SessionCreateDate = sessionInfo.CreateDate })); }