public IActionResult SaveEvent(TimelineEventModel model) { sessionsRepository.AddEvent(model.SessionId, new TimelineEvent { Id = Guid.NewGuid(), Date = model.Date.Date, Text = model.Text }); return(RedirectToAction("AddEvent", new { sessionId = model.SessionId })); }