public Formation Create(CreateFormationCommand command) { var Formation = new Formation(command.Name, command.Description); Formation.Validate(); _repository.Create(Formation); if (Commit()) { return(Formation); } return(null); }