Example #1
0
        public EvaluationTool Create(CreateEvaluationToolCommand command)
        {
            var service = new EvaluationTool(command.Name, command.Type, command.Question, command.Author, command.Coach);

            service.Validate();
            _repository.Create(service);

            if (Commit())
            {
                return(service);
            }

            return(null);
        }