public IActionResult SaveSession(string sessionName) { sessionsRepository.Save(new Session { CreateDate = DateTime.Today, Id = Guid.NewGuid(), Name = sessionName, Events = new TimelineEvent[0], Reviews = new Review[0] }); return(RedirectToAction("Sessions", "Presentation")); }
public void Handle(UserConnected evt) { _repository.Save(new SessionProjection(evt)); }