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

            lesson.DeleteRating(command.RatingId, command.Date);
            repo.Save(lesson, Guid.NewGuid());
        }