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; }
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); }
public void AddEvaluationTool(EvaluationTool evaluationTool) { evaluationTool.Validate(); this.EvaluationTool.Add(evaluationTool); }