Ejemplo n.º 1
0
        public void Handle(EditCommentCommand command)
        {
            //Lesson lesson = repo.GetById<Lesson>(command.Id, command.Version);
            Lesson lesson = repo.GetById <Lesson>(command.Id);

            lesson.EditComment(command.CommentId, command.Content, command.Date);
            repo.Save(lesson, Guid.NewGuid());
        }