Ejemplo n.º 1
0
        public Result Handle(CreateActorCommand command)
        {
            var actor = _actorFactory.CreateRandomActor();

            _actorRepository.AddActor(actor);
            _actorRepository.Save();
            return(Result.Ok());
        }