예제 #1
0
 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 }));
 }