public ICommandResult Handle(CreateClassRoomCommand command) { var classRoom = new ClassRoom(command.Description, command.Status, command.Type); AddNotifications(classRoom.Notifications); if (Invalid) { return(new CommandResult(false, "Erro ao cadastrar sala", Notifications)); } _repository.Create(command); return(new CommandResult(true, "Sala cadastrada com sucesso", null)); }