public ICommandResult Handle(PetDeleteCommand command) { if (!command.Validate()) { return(new CommandResult(false, "PetDeleteCommand", "Não foi possível remover o pet", null)); } _repository.DeleteByPetId(command.PetId); return(new CommandResult(true, "PetDeleteCommand", "Pet removido com sucesso", null)); }