コード例 #1
0
        public void Handle(AddNewRatingCommand command)
        {
            //Lesson lesson = repo.GetById<Lesson>(command.Id, command.Version);
            Lesson lesson = repo.GetById <Lesson>(command.Id);

            lesson.AddNewRating(command.RatingId, command.Rating, command.UserId, command.Content, command.Date);
            repo.Save(lesson, Guid.NewGuid());
        }